Safari History is history

Delete Safari’s History with a shell command. From the AppleScript Users List

OS version:

try
	do shell script "rm ~/Library/Safari/History.plist"
end try
tell app "Safari" to quit

The topic is very old.

Meanwhile a lot of things have changed. In 2019 the history is stored in a mysql database rather than in a property list file.