deleteDatabase method

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

Deletes a database. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. databaseName Database name.

Implementation

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