CouchbaseBucket.Remove<T> Method (IDocument<T>, ReplicateTo, PersistTo)Couchbase .NET SDK 2.0
Removes a document from the database.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public 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 IResult with information regarding the operation.

Implements

IBucket.Remove<T>(IDocument<T>, ReplicateTo, PersistTo)
See Also