Recently I noticed that many people don’t know this. So here it is. Look at where your editing cursor is.
If you want to remove things on the LEFT side of the cursor, use BACKSPACE key.
If you want to remove something on the RIGHT side of the cursor, you press DELETE key.
Entire word on either side can be removed by pressing CTRL key along with Delete or Backspace keys.
Although there is no existing shortcut or Word Command to delete the word under the cursor, a single line of code deletes the current word (without selecting it).
Thanks to my friend, Raj Chaudhuri, for figuring out this brilliant one-line macro