IBucket RemoveAsync Method (String, UInt64, ReplicateTo, PersistTo)Couchbase .NET SDK 2.1.0 Documentation
Removes a document for a given key from the database as an asynchronous operation.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
Task<IOperationResult> RemoveAsync(
	string key,
	ulong cas,
	ReplicateTo replicateTo,
	PersistTo persistTo
)

Parameters

key
Type: System String
The key to remove from the database
cas
Type: System UInt64
The CAS (Check and Set) value for optimistic concurrency.
replicateTo
Type: Couchbase ReplicateTo
The durability requirement for replication.
persistTo
Type: Couchbase PersistTo
The durability requirement for persistence.

Return Value

Type: Task IOperationResult 
The Task TResult  object representing the asynchronous operation.
See Also