history -c

Apparently, you can’t use history -c in a shell script.