> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOWTO : Bulk deletes in vi
- URL: https://kudithipudi.org/howto-bulk-deletes-in-vi/
- Published: 2023-06-27T09:38:14.000Z
- Updated: 2023-06-27T09:38:14.000Z
- Description: Use “dG” command, if you want to delete all lines in a file starting from the line under the cursor in vi. Additional commands to delete...
- Author: admin
- Tags: HOWTO, howto, linux, tips, #wp, #wp-post, #Import 2026-08-23 02:32

Use “**dG**” command, if you want to delete all lines in a file starting from the line under the cursor in [vi](https://en.wikipedia.org/wiki/Vi?ref=kudithipudi.org).

Additional commands to delete lines

1. dd deletes the whole line under the cursor.
2. **x**dd deletes multiple (x) lines, starting at the cursor. For example 10dd deletes 10 lines
3. d$ deletes to the end of the line, starting at the cursor.