deleteDatabase method

Future<void> deleteDatabase(
  1. String databaseName, {
  2. String? securityOrigin,
  3. String? storageKey,
  4. StorageBucket? storageBucket,
})

Deletes a database. securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. Security origin. storageKey Storage key. storageBucket Storage bucket. If not specified, it uses the default bucket. databaseName Database name.

Implementation

Future<void> deleteDatabase(String databaseName,
    {String? securityOrigin,
    String? storageKey,
    storage.StorageBucket? storageBucket}) async {
  await _client.send('IndexedDB.deleteDatabase', {
    'databaseName': databaseName,
    if (securityOrigin != null) 'securityOrigin': securityOrigin,
    if (storageKey != null) 'storageKey': storageKey,
    if (storageBucket != null) 'storageBucket': storageBucket,
  });
}