Click or drag to resize

DatabaseDelete Method (Document)

Deletes a document from the database. When write operations are executed concurrently, the last writer will overwrite all other written values. Calling this method is the same as calling Delete(Document, ConcurrencyControl) with LastWriteWins

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public void Delete(
	Document document
)

Parameters

document
Type: Couchbase.LiteDocument
The document
Exceptions
ExceptionCondition
CouchbaseExceptionThrown if an error condition is returned from LiteCore
CouchbaseLiteExceptionThrown with InvalidParameter when trying to save a document into a database other than the one it was previously added to
CouchbaseLiteExceptionThrown with NotFound when trying to delete a document that hasn't been saved into a Database yet
InvalidOperationExceptionThrown if this method is called after the database is closed
See Also