Delete from history
history history -d 27 (27 is an example, choose the # of command you’d like to delete)