history lists commands from the shell history.
history
Delete an entry by command index:
history -d <command index>