Select Preferences from the Safari menuor hold down the Command key and the comma key at the same time (Command+,).
Go to the Privacy tab.
Click the Remove All Website Data buttonto remove all stored website data, or skip to step 5 to remove data on a site-by-site basis.
Click Remove Nowto confirm. Note, as Safari warns you, this could log you out of sites and perhaps also change how they function. For example, instead of getting tailored ads on the site, you'll be served generic ones.
To remove stored data by site,click the Details button.
Select the sites with stored data you want to remove. Hold down the Command key to select multiple sites.