Additional DataStore methods
Clear
To clear local data from DataStore, use the clear method:
import { DataStore } from 'aws-amplify';
await DataStore.clear();Start
To manually start the sync process, use the start method:
import { DataStore } from 'aws-amplify';
await DataStore.start();Synchronization starts automatically whenever you run any of the following methods: DataStore.query(), DataStore.save(), DataStore.delete(), or DataStore.observe().