@ DoesServiceRequest public void delete ( TableRequestOptions options , OperationContext opContext ) throws StorageException { if ( opContext == null ) { opContext = new OperationContext ( ) ; } opContext . initialize ( ) ; options = TableRequestOptions . populateAndApplyDefaults ( options , this . tableServiceClient ) ; Utility . assertNotNullOrEmpty ( "tableName" , this . name ) ; final DynamicTableEntity tableEntry = new DynamicTableEntity ( ) ; tableEntry . getProperties ( ) . put ( TableConstants . TABLE_NAME , new EntityProperty ( this . name ) ) ; TableOperation deleteOp = new TableOperation ( tableEntry , TableOperationType . DELETE ) ; deleteOp . execute ( this . tableServiceClient , TableConstants . TABLES_SERVICE_TABLES_NAME , options , opContext ) ; }
Deletes the table from the storage service using the specified request options and operation context .