MCPcopy Create free account
hub / github.com/TanStack/db / clearStorage

Function clearStorage

packages/db/src/local-storage.ts:422–424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420 * Removes all collection data from the configured storage
421 */
422 const clearStorage: ClearStorageFn = (): void => {
423 storage.removeItem(config.storageKey)
424 }
425
426 /**
427 * Get the size of the stored data in bytes (approximate)

Callers

nothing calls this directly

Calls 1

removeItemMethod · 0.80

Tested by

no test coverage detected