@ DoesServiceRequest public boolean deleteIfExists ( TableRequestOptions options , OperationContext opContext ) throws StorageException { options = TableRequestOptions . populateAndApplyDefaults ( options , this . tableServiceClient ) ; if ( this . exists ( true , options , opContext ) ) { try { this . delete ( options , opContext ) ; } catch ( StorageException ex ) { if ( ex . getHttpStatusCode ( ) == HttpURLConnection . HTTP_NOT_FOUND && StorageErrorCodeStrings . RESOURCE_NOT_FOUND . equals ( ex . getErrorCode ( ) ) ) { return false ; } else { throw ex ; } } return true ; } else { return false ; } }
Deletes the table from the storage service using the specified request options and operation context if it exists .