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: 

Deleting a file using a Shared Link through the API

Deleting a file using a Shared Link through the API

Gonzo345
Helpful | Level 5
Go to solution

Hi there:

 

I'm brand new with the Dropbox API for .NET and I've made my steps forward.

 

The thing is that we want to work with shared links in terms of deleting files. I know I can use the

DropboxClient.Files.DeleteAsync(remoteRoute);

That would delete the file if I know the route it has, but... What about if I just know the link but I have full access to the account through the API? I mean, I could download the file (using the Files.DownloadAsync), but I couldn't delete the file unless I have the file route, which is not being provided if I recover the file through the shared link...

 

Thanks for all in advance. Mastering this official API is being... interesting :grin:

Gonzo345.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

You can use GetSharedLinkMetadataAsync to get the metadata for a shared link. You can then use the returned SharedLinkMetadata.PathLower to delete the file.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

You can use GetSharedLinkMetadataAsync to get the metadata for a shared link. You can then use the returned SharedLinkMetadata.PathLower to delete the file.

Gonzo345
Helpful | Level 5
Go to solution
Thank you so much for this answer! This made my day, Greg!

Have a nice day, DropBoss!
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Gonzo345 Helpful | Level 5
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?