The named parameters.
The key to remove.
Optionaltype?: stringThe storage to act upon.
Rejected promise represents an API violation.
// Make sure it is available to the runtime.
if (runtime_available({request: AVAILABILITY_REQUEST.Local})) {
// To remove an element from storage.
// Defaults to STORAGE_TYPE.Local
await storage_remove({key: "cool"});
// To specify type
await storage_remove({type: STORAGE_TYPE.Session, key: "cool"});
}
Removes a given entry from the module's local storage.