[Bash] Delete a specific shell history entry

Created on November 30, 2026

Use history -d with the entry number shown by history. For example, the following command removes entry 2000 from the current Bash session's history list.

history -d 2000
Shell command