public void delete(final String id) throws BackgroundException {
        if(log.isInfoEnabled()) {
            log.info(String.format("Delete multipart upload for fileid %s", id));
        }
        try {
            session.getClient().cancelLargeFileUpload(id);
        }
        catch(B2ApiException e) {
            throw new B2ExceptionMappingService(fileid).map(e);
        }
        catch(IOException e) {
            throw new DefaultIOExceptionMappingService().map(e);
        }
    }
@Test
    public void testDelete() throws Exception {
        final Path bucket = new Path("test-cyberduck", EnumSet.of(Path.Type.directory, Path.Type.volume));
        final Path file = new Path(bucket, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));
        final B2StartLargeFileResponse startResponse = session.getClient().startLargeFileUpload(
            new B2VersionIdProvider(session).getVersionId(bucket),
            file.getName(), null, Collections.emptyMap());
        final String fileid = startResponse.getFileId();
        new B2LargeUploadPartService(session, new B2VersionIdProvider(session)).delete(startResponse.getFileId());
    }