How to delete a whole word after the cursor in a Bash-like command-line tool? [duplicate] November 18, 2023 by Tarik Use Esc + D or Alt + D to delete the word on the right.