TableClient.DeleteEntity(String, String, ETag, CancellationToken) Method

Definition

Deletes the specified table entity.

public virtual Azure.Response DeleteEntity (string partitionKey, string rowKey, Azure.ETag ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteEntity : string * string * Azure.ETag * System.Threading.CancellationToken -> Azure.Response
override this.DeleteEntity : string * string * Azure.ETag * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteEntity (partitionKey As String, rowKey As String, Optional ifMatch As ETag = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

partitionKey
String

The partitionKey that identifies the table entity.

rowKey
String

The rowKey that identifies the table entity.

ifMatch
ETag

The If-Match value to be used for optimistic concurrency. If All is specified, the operation will be executed unconditionally. If the ETag value is specified, the operation will fail with a status of 412 (Precondition Failed) if the ETag value of the entity in the table does not match. The default is to delete unconditionally.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Response

If the entity exists, the Response indicating the result of the operation. If the entity does not exist, null

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to