cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

Expired link not deleted from file

Expired link not deleted from file

ndelamaide
New member | Level 2

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.

 

Screenshot 2024-01-10 at 17.33.08.png

Here you can see that the expiration date actually passed.

Screenshot 2024-01-10 at 17.33.21.png

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 ?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff

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.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?