Skip to main content

removeItem

removeItem(key: string,storage: null | string): void

remove a key from the specified storage
if the storage is set to 'any', try all storage

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
keystring: name of the key to get the value from
Additional properties for advanced use cases
PropertiesTypeDescription
storagenull | string: localStorage, sessionStorage, cookie, any (defaults to any)