On MacOS, how do you delete history without deleting cookies and cache?

I can't seem to find the option to do so. Also, I'm on Big Sur if that's relevant.


Open safari and press ⌘Y, then press ⌘A, right click (Or control click) and select delete.

If you just want to delete some, then ⌘Click the days or sites you want to delete and then right click (Or control click) and select delete.