code: void performAbortMultipartUpload() {
          if (multipartUploadId == null) {
              return;
          }
          try {
              AbortMultipartUploadRequest abortRequest = new AbortMultipartUploadRequest(origReq.getBucketName(), origReq.getKey(),
                      multipartUploadId)
                      .withRequesterPays(origReq.isRequesterPays());
              s3.abortMultipartUpload(abortRequest);
          } catch (Exception e2) {
              log.info(
                      "Unable to abort multipart upload, you may need to manually remove uploaded parts: "
                              + e2.getMessage(), e2);
          }
      }
docs: Performs an
  {@link AmazonS3#abortMultipartUpload(AbortMultipartUploadRequest)}
  operation for the given multi-part upload.