code: public int delete(CMAUpload upload) {
      final String uploadId = getResourceIdOrThrow(upload, "upload");
      final String spaceId = getSpaceIdOrThrow(upload, "upload");
  
      final Response<Void> response = service.delete(spaceId, uploadId).blockingFirst();
      return response.code();
    }
docs: Delete a given upload again.
  
  @param upload upload
  @return response code, 204 on success.
  @throws IllegalArgumentException if spaceId is null.
  @throws IllegalArgumentException if uploadId is null.