deleteObjectStore method

Deletes an object store (and associated indexes) from the database.

Internet Explorer 10

Syntax

IDBDatabase.deleteObjectStore(name);

Parameters

name [in]

Type: DOMString

Name of the object store to be removed.

Return value

This method does not return a value.

Exceptions

This method can throw the following DOMException exceptions:

Note  As of Internet Explorer 10, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.

Exception propertiesCondition
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).

Standards information

See also

IDBDatabase

 

 

Show:
© 2014 Microsoft. All rights reserved.