This function deletes the given stream. Deletion puts the stream into a "recycled" state. For immediate, non-recoverable deletions see the Purge(CosmosUri) method.

Namespace: Microsoft.Cosmos.Management
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

C#
public void Delete(
	CosmosUri stream
)
Visual Basic
Public Sub Delete ( _
	stream As CosmosUri _
)
Visual C++
public:
void Delete(
	CosmosUri^ stream
)

Parameters

stream
Type: CosmosUri
Stream path to be deleted.

Remarks

Directory delete is currently not supported through this API.

Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when stream is null or empty
VcClientExceptions..::..VcClientExceptionThrown when the delete operation fails.

See Also