Windows Dev Center

deleteObjectStore method

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




name [in]

Type: DOMString

Name of the object store to be removed.

Return value

This method does not return a value.


This method can throw the following DOMException exceptions:

Note  As of a Windows Store app using JavaScript, 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




© 2015 Microsoft