Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Note: This feature is available in Web Workers.
The deleteObjectStore() method of the IDBDatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
As with IDBDatabase.createObjectStore, this method can be called only within a versionchange transaction.
The name of the object store you want to delete. Names are case sensitive.
None (undefined).
Thrown if the method was not called from a versionchange transaction callback.
TransactionInactiveError DOMExceptionThrown if a request is made on a source database that doesn't exist (E.g. has been deleted or removed.)
NotFoundError DOMExceptionThrown when trying to delete an object store that does not exist.
| Indexed Database API 3.0 # ref-for-dom-idbdatabase-deleteobjectstore① |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 3, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.