Open the Safari app on your Mac
Click the Manage Website Data… button
Select one or more sites from the list and click Remove or Remove All to clear their data