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

Function deleteAll

examples/electron/offline-first/src/utils/api.ts:63–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 },
62
63 async deleteAll(): Promise<void> {
64 const response = await fetch(`${BASE_URL}/api/todos`, {
65 method: 'DELETE',
66 })
67 if (!response.ok) {
68 throw new Error(`Failed to delete all todos: ${response.status}`)
69 }
70 },
71}

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected