code: public void removeObject(String bucketName, String objectName)
      throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException,
             InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,
             InternalException, InvalidArgumentException {
      if ((bucketName == null) || (bucketName.isEmpty())) {
        throw new InvalidArgumentException("bucket name cannot be empty");
      }
  
      if ((objectName == null) || (objectName.isEmpty())) {
        throw new InvalidArgumentException("object name cannot be empty");
      }
  
      executeDelete(bucketName, objectName, null);
    }
docs: Removes an object from a bucket.
  
  </p><b>Example:</b><br>
  <pre>{@code minioClient.removeObject("my-bucketname", "my-objectname"); }</pre>
  
  @param bucketName Bucket name.
  @param objectName Object name in the bucket.
  
  @throws InvalidBucketNameException  upon invalid bucket name is given
  @throws NoSuchAlgorithmException
  upon requested algorithm was not found during signature calculation
  @throws InsufficientDataException  upon getting EOFException while reading given
  InputStream even before reading given length
  @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.