history command in macOS Catalina I can't delete the shell history in macOS Catalina. I use rm ~/.bash_history.

history -c all command fields. I need to delete the command history.
Just do a

rm ~/.zsh_history


that clears the history. After that close the Terminal app. To check if the history was cleared run

history


in Terminal.