public void BasicDeleteEntity ( ) throws StorageException { // Create an operation to retrieve the entity with partition key of // "Smith" and row key of "Jeff". TableOperation retrieveSmithJeff = TableOperation . retrieve ( "Smith" , "Jeff" , CustomerEntity . class ) ; // Retrieve the entity with partition key of "Smith" and row key of // "Jeff". CustomerEntity entitySmithJeff = table . execute ( retrieveSmithJeff ) . getResultAsType ( ) ; // Create an operation to delete the entity. TableOperation deleteSmithJeff = TableOperation . delete ( entitySmithJeff ) ; // Submit the delete operation to the table service. table . execute ( deleteSmithJeff ) ; }
Illustrates how to form and execute an entity delete operation .