Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello,
For my company I wrote a script that sets an expiration date for the shared links and all works well. The only issue is that once the expiration date passes, the link is expired but not actually deleted from the file.
Like on the below screenshot it says that the link expires in 0 days, and when you click on "Copy link" it copies the expired link.
Here you can see that the expiration date actually passed.
Is this the intended behavior of setting the expiration date with the API ? Because it does not happen when manually setting an expiration date. If it is, how can I make it so the link is delete from the files once it expires ?
There are technically different types of shared links, and the exact behavior of this may vary for the different types.
In any case, the API doesn't offer an option to explicitly control that behavior, but you can remove a shared link on demand by calling /2/sharing/revoke_shared_link.
There are technically different types of shared links, and the exact behavior of this may vary for the different types.
In any case, the API doesn't offer an option to explicitly control that behavior, but you can remove a shared link on demand by calling /2/sharing/revoke_shared_link.
Hi there!
If you need more help you can view your support options (expected response time for a 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!