TinyBase logoTinyBase

delTables

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

delTables(): this
returnsthis

A reference to the Store.

Example

This example removes the data of a Store.

import {createStore} from 'tinybase';

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

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

Since

v1.0.0