.clear - macmcmeans/localDataStorage GitHub Wiki

localDataStorage.clear()

This method deletes all the prefixed keys created under the current instance. It will not delete any keys created outside of localDataStorage. This method is useful for cleanup when storage is no longer needed.

The operation cannot be undone.

EXAMPLE:

● localData.clear()

🌐 Multiple events may be fired corresponding to each key deleted, allowing you to monitor all affected keys.

🏿 The corresponding Memory Key method is _clear.