How to Delete up to Non-Whitespace Characters in Emacs

I often want to delete a lot whitespaces between one word and another and had to hit the “Delete” buttons many times. Now I just discovered this command M-^ (delete-indentation &optional arg) works perfectly for my need.