deleteIndex method

Deletes an index from an object store.

Internet Explorer 10

Syntax

IDBObjectStore.deleteIndex(indexName);

Parameters

indexName [in]

Type: DOMString

Name of the index to be deleted.

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)

Either the associated transaction is not a VERSION_CHANGE transaction.

name: NotFoundError
code: DOMException.NOT_FOUND_ERR (8)

The specified index was not found in the database (case-sensitive).

Standards information

See also

IDBObjectStore

 

 

Show:
© 2015 Microsoft