Open Safari.
In the top menu, click Safari > Settings (or Preferences).
Select the Privacytab.
Click Manage Website Data.
In the new window, click Remove All, then confirm with Remove Now.
Close the window and restart Safari.
💡 Tip: To clear only specific sites, search for the site name and click "Remove" next to it.