Dexie Global Hackathon 25

JOIN NOW

Table.delete()

Delete object from store.

Syntax

table.delete(primaryKey)

Parameters

primaryKeyPrimary 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()

Table of Contents