eligius
    Preparing search index...

    Variable clearStorageConst

    clearStorage: TOperation<
        IClearStorageOperationData,
        Omit<IClearStorageOperationData, "key" | "storageType">,
    > = ...

    Clears data from browser storage (localStorage or sessionStorage).

    If key is provided, removes only that key. If key is omitted, clears all storage.

    Operation data with storage properties erased

    // Clear specific key
    const result = clearStorage({
    key: 'user-settings',
    storageType: 'local'
    });
    // Clear all localStorage
    const result = clearStorage({
    storageType: 'local'
    });