@ DoesServiceRequest public boolean deleteIfExists ( QueueRequestOptions options , OperationContext opContext ) throws StorageException { options = QueueRequestOptions . populateAndApplyDefaults ( options , this . queueServiceClient ) ; boolean exists = this . exists ( true , options , opContext ) ; if ( exists ) { try { this . delete ( options , opContext ) ; return true ; } catch ( StorageException e ) { if ( e . getHttpStatusCode ( ) == HttpURLConnection . HTTP_NOT_FOUND && StorageErrorCodeStrings . QUEUE_NOT_FOUND . equals ( e . getErrorCode ( ) ) ) { return false ; } else { throw e ; } } } else { return false ; } }
Deletes the queue if it exists using the specified request options and operation context .