Use Up arrow to browse through history of command executed and then press Ctrl+u to delete that particular command from history.
For Example:
rm -f myfile.txt
press Ctrl+u
Now to confirm type history command ,you will not find that the command in history
rm -f myfile.txt is removed from history.
Advertisements