I'm trying to delete the terminal history but the .zsh_history does not allow me to run it, it says permission denied. Please help.
At System Preferences/Security and Privacy/Privacy unlock the padlock and add the terminal to "Full disk access". Then reload the terminal and retry. https://support.apple.com/guide/mac-help/change-privacy-preferences-on-mac-mh32356/mac