code: public void removeIncompleteUpload(String bucketName, String objectName)
      throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException,
             InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,
             InternalException {
      for (Result<Upload> r : listIncompleteUploads(bucketName, objectName, true, false)) {
        Upload upload = r.get();
        if (objectName.equals(upload.objectName())) {
          abortMultipartUpload(bucketName, objectName, upload.uploadId());
          return;
        }
      }
    }
docs: Removes incomplete multipart upload of given object.
  
  </p><b>Example:</b><br>
  <pre>{@code minioClient.removeIncompleteUpload("my-bucketname", "my-objectname");
  System.out.println("successfully removed all incomplete upload session of 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