We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d35db commit 1b580d2Copy full SHA for 1b580d2
examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java
@@ -286,6 +286,13 @@ public static void main(String[] args) throws IOException {
286
} else {
287
chunkedUploadFile(dbxClient, localFile, dropboxPath);
288
}
289
+
290
+ try {
291
+ // Delete the file we uploaded so we don't run out of space on the integration test account
292
+ dbxClient.files().deleteV2(dropboxPath);
293
+ } catch (DbxException e) {
294
+ throw new RuntimeException("Could not cleanup the test file we just uploaded at " + dropboxPath, e);
295
+ }
296
297
System.exit(0);
298
0 commit comments