TableClient.deleteEntity Method

Definition

Overloads

deleteEntity(TableEntity entity)

Deletes an TableEntity from the table.

Code Samples

Deletes a TableEntity on the table. Prints out the details of the deleted TableEntity.

String myPartitionKey = "partitionKey";
 String myRowKey = "rowKey";

 TableEntity myTableEntity = new TableEntity(myPartitionKey, myRowKey)
     .addProperty("Property", "Value");

 tableClient.deleteEntity(myTableEntity);

 System.out.printf("Table entity with partition key '%s' and row key: '%s' was created.", partitionKey, rowKey);
deleteEntity(String partitionKey, String rowKey)

Deletes an TableEntity from the table.

Code Samples

Deletes an TableEntity on the table. Prints out the entity's partitionKey and rowKey.

String partitionKey = "partitionKey";
 String rowKey = "rowKey";

 tableClient.deleteEntity(partitionKey, rowKey);

 System.out.printf("Table entity with partition key '%s' and row key: '%s' was deleted.", partitionKey, rowKey);

deleteEntity(TableEntity entity)

public void deleteEntity(TableEntity entity)

Deletes an TableEntity from the table.

Code Samples

Deletes a TableEntity on the table. Prints out the details of the deleted TableEntity.

String myPartitionKey = "partitionKey";
 String myRowKey = "rowKey";

 TableEntity myTableEntity = new TableEntity(myPartitionKey, myRowKey)
     .addProperty("Property", "Value");

 tableClient.deleteEntity(myTableEntity);

 System.out.printf("Table entity with partition key '%s' and row key: '%s' was created.", partitionKey, rowKey);

Parameters

entity
TableEntity

The TableEntity to delete.

deleteEntity(String partitionKey, String rowKey)

public void deleteEntity(String partitionKey, String rowKey)

Deletes an TableEntity from the table.

Code Samples

Deletes an TableEntity on the table. Prints out the entity's partitionKey and rowKey.

String partitionKey = "partitionKey";
 String rowKey = "rowKey";

 tableClient.deleteEntity(partitionKey, rowKey);

 System.out.printf("Table entity with partition key '%s' and row key: '%s' was deleted.", partitionKey, rowKey);

Parameters

partitionKey
java.lang.String

The partition key of the TableEntity.

rowKey
java.lang.String

The row key of the TableEntity.

Applies to