1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Delete Previous Word](<https://delaparra-services.nl/knowledge-hub/delete-previous-word>)

  

Category: Keyboard shortcuts 

# Delete Previous Word

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Delete Previous Word?

 

Delete Previous Word: Delete the word to the left of the cursor on the command line. In most terminals, ` Ctrl+W ` deletes the word to the left of the cursor. ` Alt+Backspace ` often does the same with slightly different rules for punctuation. In editors, ` Ctrl+Backspace ` or ` Option+Backspace ` deletes the previous word. It is much faster than holding Backspace when you mistype a long argument or want to change the last part of a command.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Delete Previous Word

  

### What should you keep in mind with Delete Previous Word?

 

A few related shell shortcuts are worth knowing too. ` Ctrl+U ` clears everything before the cursor, ` Ctrl+K ` everything after it, ` Ctrl+A ` jumps to the start of the line and ` Ctrl+E ` to the end. Together they make editing long commands, such as Docker or kubectl calls with many options, much less frustrating. Note that ` Ctrl+W ` closes the tab in many browser-based terminals.

 

## At a glance

   CategoryKeyboard shortcuts Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Keyboard shortcuts terms

 

- [Copy Line Up / Down](<https://delaparra-services.nl/knowledge-hub/copy-line-up-down>) 
- [dd (delete line)](<https://delaparra-services.nl/knowledge-hub/dd-delete-line>) 
- [Delete Line](<https://delaparra-services.nl/knowledge-hub/delete-line>) 
- [Extract Method / Variable](<https://delaparra-services.nl/knowledge-hub/extract-method-variable>) 
- [Format Document](<https://delaparra-services.nl/knowledge-hub/format-document>) 
- [gg / G (top / bottom)](<https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom>)

 

[All terms starting with D](<https://delaparra-services.nl/knowledge-hub#letter-d>)

 

## Skills

 

- ### Editor shortcuts (VS Code / Cursor and Vim)

 

Use when a user asks how to do something faster in VS Code (or Cursor) or Vim, asks what a keyboard shortcut does (e.g. Ctrl+D, Ctrl+Shift+P, F12, gg, dd, yy, ciw, :wq), wants to customise keybindings, or is stuck in Vim. Gives the correct shortcut for their operating system and can write keybindings.json entries.

 [View skill](<https://delaparra-services.nl/skills/editor-shortcuts>) [Download zip](<https://delaparra-services.nl/skills/editor-shortcuts/download>)

 

## Manuals

 

- [Keyboard shortcuts in VS Code and the terminal](<https://delaparra-services.nl/manuals/sneltoetsen-in-vs-code>) 
- [Installing Visual Studio Code](<https://delaparra-services.nl/manuals/visual-studio-code-installeren>)

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/delete-previous-word)
