deleteObjectStore
Summary
Destroys an object store with the given name as well as all indexes that are referencing that object store.
Method of apis/indexeddb/IDBDatabaseapis/indexeddb/IDBDatabase
Syntax
var object = object.deleteObjectStore(name);
Parameters
name
- Data-type
- Blob
Name of the object store to be removed.
Return Value
Returns an object of type DOM NodeDOM Node
This method can throw the following DOMException exceptions:
Note As of Internet Explorer 10, the code property is deprecated in lieu of the name property, which is preferred for standards compliance and future compatibility.
Exception properties | Description |
---|---|
name: InvalidStateError
code: DOMException.INVALID_STATE_ERR (11) |
The method was not called within the context of a VERSION_CHANGE transaction or the request was made for an object that has been moved or deleted. |
name: NotFoundError
code: DOMException.NOT_FOUND_ERR (8) |
An object store could not be found with the specified name (case-sensitive). |
Syntax
Standards information
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]