> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: clear() # Method package: wixStorageMobile # Method menu location: wixStorageMobile --> StorageMobile --> clear # Method Link: https://dev.wix.com/docs/velo/apis/wix-storage-mobile/storage-mobile/clear.md # Method Description: Removes **all** items from local, or memory storage. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Remove all items from local storage ```javascript import {local} from 'wix-storage-frontend'; // ... local.clear(); ``` ## Remove all items from memory storage ```javascript import {memory} from 'wix-storage-frontend'; // ... memory.clear(); ``` ## Manage data stored in the browser ```javascript import {local as storage} from 'wix-storage-frontend'; // Alternatively use: // import {session as storage} from 'wix-storage-frontend'; // import {memory as storage} from 'wix-storage-frontend'; $w.onReady(async function () { $w('#setItemButton').onClick( () => { storage.setItem($w('#setKey').value, $w('#setValue').value); $w('#setKey').value = undefined; $w('#setValue').value = undefined; }); $w('#getItemButton').onClick( () => { $w('#getValue').value = storage.getItem($w('#getKey').value); $w('#getKey').value = undefined; }); $w('#removeItemButton').onClick( () => { storage.removeItem($w('#removeKey').value); $w('#removeKey').value = undefined; }); $w('#clearButton').onClick( () => { storage.clear(); }); }); ``` ---