cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

deleteFilesV2 Error - Javascript SDK

deleteFilesV2 Error - Javascript SDK

find-bijan
Explorer | Level 4

I'm getting a 'Request has been terminated...' console error with this code below. I imagine it's no different than the filesUpload(arg) class but it's not working for me. Is there something wrong with my code?

 

function deleteFile(){
      dbx.filesDeleteV2({path: "/humanities.txt"})
      .then(function(response){
        console.log(response);
      })
      .catch(function(error){
        console.error(error);
      });
    }
2 Replies 2

Greg-DB
Dropbox Staff
I just tried this, and it is working for me.

Are you triggering any navigation around the same time? These calls are asynchronous, so if you leave the page before the call finishes, you can get this error.

find-bijan
Explorer | Level 4

Wow of course - Thank you, my code is functioning now!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    find-bijan Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?