TinyBase logoTinyBase

delTables

The delTables method lets you remove all of the data in a Store.

delTables(): Store
returnsStore

A reference to the Store.

Example

This example removes the data of a Store.

const store = createStore().setTables({pets: {fido: {species: 'dog'}}});

store.delTables();
console.log(store.getTables());
// -> {}