WriteableTable.delete() - zuki/Dexie.js GitHub Wiki

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

WriteableCollection.delete()

WriteableTable.clear()

Dexie.delete()

⚠️ **GitHub.com Fallback** ⚠️