IBucket Remove T  Method (IDocument T , ReplicateTo, PersistTo)Couchbase .NET SDK 2.1.0 Documentation
Removes a document from the database.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
IOperationResult Remove<T>(
	IDocument<T> document,
	ReplicateTo replicateTo,
	PersistTo persistTo
)

Parameters

document
Type: Couchbase IDocument T 
The IDocument T  to remove from the database.
replicateTo
Type: Couchbase ReplicateTo
The durability requirement for replication.
persistTo
Type: Couchbase PersistTo
The durability requirement for persistence.
Type Parameters
T
The type T of the object.

Return Value

Type: IOperationResult
An object implementing IDocumentResult T  with information regarding the operation.
See Also