delete method
The delete()
method of the
IDBObjectStore interface returns an IDBRequest object,
and, in a separate thread, deletes the specified record or records.
Either a key or an IDBKeyRange can be passed, allowing one or multiple records to be deleted from a store. To delete all records in a store, use IDBObjectStore.clear.
Bear in mind that if you are using a IDBCursor, you can use the IDBCursor.delete method to more efficiently delete the current record — without having to explicitly look up the record's key.
Implementation
external IDBRequest delete(JSAny? query);