clearData
resolves when all data has been cleared.
Clears various different types of data.
This method clears more types of data and is more thorough than the clearStorageData
method.
!NOTE Cookies are stored at a broader scope than origins. When removing cookies and filtering by
origins
(orexcludeOrigins
), the cookies will be removed at the registrable domain level. For example, clearing cookies for the originhttps://really.specific.origin.example.com/
will end up clearing all cookies forexample.com
. Clearing cookies for the originhttps://my.website.example.co.uk/
will end up clearing all cookies forexample.co.uk
.
!NOTE Clearing cache data will also clear the shared dictionary cache. This means that any dictionaries used for compression may be reloaded after clearing the cache. If you wish to clear the shared dictionary cache but leave other cached data intact, you may want to use the
clearSharedDictionaryCache
method.
For more information, refer to Chromium's BrowsingDataRemover
interface.