Skip to content

Table.delete()

David Fahlander edited this page Nov 25, 2016 · 2 revisions

Delete object from store.

Syntax

table.delete(primaryKey)

Parameters

primaryKey Primary key of the object to delete

Return Value

Promise that resolves successfully with an undefined result, no matter if a record was deleted or not. Rejection happens if the provided key is not a valid key (not a Number, String, Date or Array<Number | String | Date>) or if the current transaction is readonly or inactive.

Remarks

Deletes the object and resolves or rejects the returned promise when done.

See Also

Collection.delete()

Table.clear()

Dexie.delete()

Clone this wiki locally