delete
Deletes a database. Deleting a database will stop all replicators, live queries and all listeners attached to it. Although attempting to close a closed database is not an error, attempting to delete a closed database is.
Throws
Throws an exception if any error occurs during the operation.
Deprecated
Use defaultCollection.delete()
Replace with
defaultCollection.delete(document)
Deletes a document from the default collection. When write operations are executed concurrently, the last writer will overwrite all other written values. Calling this function is the same as calling delete(Document, ConcurrencyControl.LAST_WRITE_WINS)
Parameters
The document.
Throws
on error
Deprecated
Use defaultCollection.delete()
Replace with
defaultCollection.delete(document, concurrencyControl)
Deletes a document from the default collection. When used with lastWriteWins concurrency control, the last write operation will win if there is a conflict. When used with FAIL_ON_CONFLICT concurrency control, delete will fail and the method will return false.
Parameters
The document.
The concurrency control.
Throws
on error
Deprecated
Use defaultCollection.delete()
Replace with
defaultCollection.delete(document)
Deprecated
Use defaultCollection.delete()
Replace with
defaultCollection.delete(document)
Deprecated
Use defaultCollection.delete()
Replace with
defaultCollection.delete(document, concurrencyControl)