public void removeBucket(String bucketName)
    throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException,
           InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,
           InternalException {
    executeDelete(bucketName, null, null);
  }
public void removeBucket ( String bucketName ) throws InvalidBucketNameException , NoSuchAlgorithmException , InsufficientDataException , IOException , InvalidKeyException , NoResponseException , XmlPullParserException , ErrorResponseException , InternalException { executeDelete ( bucketName , null , null ) ; }
Removes a bucket.
<p>
NOTE: -
All objects (including all object versions and delete markers) in the bucket
must be deleted prior, this API will not recursively delete objects
</p>

</p><b>Example:</b><br>
<pre>{@code minioClient.removeBucket("my-bucketname");
System.out.println("my-bucketname is removed successfully"); }</pre>

@param bucketName Bucket name.

@throws InvalidBucketNameException  upon invalid bucket name is given
@throws NoSuchAlgorithmException
upon requested algorithm was not found during signature calculation
@throws IOException                 upon connection error
@throws InvalidKeyException
upon an invalid access key or secret key
@throws NoResponseException         upon no response from server
@throws XmlPullParserException      upon parsing response xml
@throws ErrorResponseException      upon unsuccessful execution
@throws InternalException           upon internal library error
@throws InvalidArgumentException    upon invalid value is passed to a method.
@throws InsufficientDataException   upon getting EOFException while reading given