One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
android_dev
8 years agoExplorer | Level 4
How to unlink dropbox from my app programaticaly?
with API 1 I did this:
dropboxApi.getSession().unlink();
What is the equivelant of that in API 2?
- Greg-DB
Dropbox Staff
Assuming you're using the API v2 Java SDK, you should just throw away your client object. The API v2 Java SDK doesn't have the same "session" concept as the v1 SDK did.
The unlink method in the v1 SDK didn't revoke the token on the server, but if you do want to explicitly revoke the token on the server using the API v2 SDK, you would additionally use tokenRevoke before throwing it away.
There's a discussion here with some other details that may be relevant depending on your use case:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 2 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!