Automatically clean up Safari cookies on macOS
Safari on macOS offers a means of deleting saved site-specific data (cache, cookies, etc.) under Settings > Private > Manage Website Data.... Your options from there include searching for and deleting specfic content vs. vapourising everything. The latter option is the safest from a privacy and security perspective; but if you’re interested in focusing on specific cookies and other privacy leaks, you have to search one-by-one. The following script can be used to manage automate this.