← Back to IndexedDB domain

IndexedDB.deleteDatabase

Deletes a database.

Domain: IndexedDB experimental

Parameters

NameTypeDescription
securityOrigin (optional)stringAt least and at most one of securityOrigin, storageKey, or storageBucket must be specified. Security origin.
storageKey (optional)stringStorage key.
storageBucket (optional)Storage.StorageBucketStorage bucket. If not specified, it uses the default bucket.
databaseNamestringDatabase name.

Example Request

{
  "id": 1,
  "method": "IndexedDB.deleteDatabase",
  "params": {
    "databaseName": "databaseName-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('IndexedDB.deleteDatabase', {"databaseName": "databaseName-value"});
console.log(result);