public static HttpURLConnection deleteShare(final URI uri, final FileRequestOptions fileOptions,
            final OperationContext opContext, final AccessCondition accessCondition, String snapshotVersion, DeleteShareSnapshotsOption deleteSnapshotsOption) 
                    throws IOException, URISyntaxException, StorageException {
        final UriQueryBuilder shareBuilder = getShareUriQueryBuilder();
        FileRequest.addShareSnapshot(shareBuilder, snapshotVersion);
        HttpURLConnection request = BaseRequest.delete(uri, fileOptions, shareBuilder, opContext);
        if (accessCondition != null) {
            accessCondition.applyConditionToRequest(request);
        }

        switch (deleteSnapshotsOption) {
        case NONE:
            // nop
            break;
        case INCLUDE_SNAPSHOTS:
            request.setRequestProperty(Constants.HeaderConstants.DELETE_SNAPSHOT_HEADER,
                    Constants.HeaderConstants.INCLUDE_SNAPSHOTS_VALUE);
            break;
        default:
            break;
        }

        return request;
    }
public static HttpURLConnection deleteShare(final URI uri, final FileRequestOptions fileOptions,
            final OperationContext opContext, final AccessCondition accessCondition, String snapshotVersion, DeleteShareSnapshotsOption deleteSnapshotsOption) 
                    throws IOException, URISyntaxException, StorageException {
        final UriQueryBuilder shareBuilder = getShareUriQueryBuilder();
        FileRequest.addShareSnapshot(shareBuilder, snapshotVersion);
        HttpURLConnection request = BaseRequest.delete(uri, fileOptions, shareBuilder, opContext);
        if (accessCondition != null) {
            accessCondition.applyConditionToRequest(request);
        }

        switch (deleteSnapshotsOption) {
        case NONE:
            
            break;
        case INCLUDE_SNAPSHOTS:
            request.setRequestProperty(Constants.HeaderConstants.DELETE_SNAPSHOT_HEADER,
                    Constants.HeaderConstants.INCLUDE_SNAPSHOTS_VALUE);
            break;
        default:
            break;
        }

        return request;
    }
public static HttpURLConnection deleteShare ( final URI uri , final FileRequestOptions fileOptions , final OperationContext opContext , final AccessCondition accessCondition , String snapshotVersion , DeleteShareSnapshotsOption deleteSnapshotsOption ) throws IOException , URISyntaxException , StorageException { final UriQueryBuilder shareBuilder = getShareUriQueryBuilder ( ) ; FileRequest . addShareSnapshot ( shareBuilder , snapshotVersion ) ; HttpURLConnection request = BaseRequest . delete ( uri , fileOptions , shareBuilder , opContext ) ; if ( accessCondition != null ) { accessCondition . applyConditionToRequest ( request ) ; } switch ( deleteSnapshotsOption ) { case NONE : // nop break ; case INCLUDE_SNAPSHOTS : request . setRequestProperty ( Constants . HeaderConstants . DELETE_SNAPSHOT_HEADER , Constants . HeaderConstants . INCLUDE_SNAPSHOTS_VALUE ) ; break ; default : break ; } return request ; }
Constructs a web request to delete the share and all of the directories and files within it. Sign with no length
specified.

@param uri
A <code>java.net.URI</code> object that specifies the absolute URI.
@param fileOptions
A {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout
settings for the operation. Specify <code>null</code> to use the request options specified on the
{@link CloudFileClient}.
@param opContext
An {@link OperationContext} object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.
@param accessCondition
An {@link AccessCondition} object that represents the access conditions for the share.
@return a HttpURLConnection configured for the operation.
@throws StorageException
@throws IllegalArgumentException
Constructs a web request to delete the share and all of the directories and files within it . Sign with no length specified .