deleteJsSdkCache function
Future<bool>
deleteJsSdkCache(
- FirebaseFirestore firestore, {
- bool discardPendingWrites = false,
- String? jsAppName,
Deletes the IndexedDB database of the official Firebase JS SDK for the app and database of firestore (see
importJsSdkCache). Returns false when there is none, or on other platforms than the web.
Throws a JsSdkCacheImportException when a JS tab may still use the database
(JsSdkCacheImportRefusal.jsClientActive), and when it holds pending writes that importJsSdkCache did not
import (JsSdkCacheImportRefusal.pendingWritesNotImported) unless discardPendingWrites is true.
Implementation
Future<bool> deleteJsSdkCache(
FirebaseFirestore firestore, {
bool discardPendingWrites = false,
String? jsAppName,
}) {
return runJsSdkCacheDelete(
firestore,
discardPendingWrites: discardPendingWrites,
jsAppName: jsAppName,
);
}