Browsers have a built-in "Clear History" feature, which enables the user to clear various types of browsing data. This has a UI that enables the user to select what type of data to remove (e.g. history, downloads, ...) and how far back in time to remove data.
This function returns the current value of these settings.
Note that not all data types will always be removable through the UI, and some UI options may map to more than one data type.
This is an asynchronous function that returns a Promise
.