Skip to main content

removeValue()

The removeValue() function clears the value associated with a specified key, which was previously stored in the browser's local storage using the storeValue() function.

Signature

removeValue(key: string)

Parameters

key

A string containing the key name that acts as a unique identifier to access the associated value.

Example:

If you want to remove the value with key isActive, you can use the removeValue() function using a JS Object as shown below:

export default {
deleteStore: () => {
storeValue("isActive", true)
removeValue("isActive")
}
}