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.
|
deleteEntity(String partitionKey, String rowKey) |
Deletes an TableEntity from the table. Code Samples Deletes an TableEntity on the table. Prints out the entity's
|
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);
public void deleteEntity(TableEntity entity)
Parameters
- entity
- TableEntity
The TableEntity to delete.
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);
public void deleteEntity(String partitionKey, String rowKey)
Parameters
- partitionKey
- java.lang.String
The partition key of the TableEntity.
- rowKey
- java.lang.String
The row key of the TableEntity.