Created
April 20, 2016 13:33
-
-
Save johnybradshaw/71321e46cdfde446aa8574cfb37ef9cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This script is designed to delete any shared links you have | |
#You will need to have the Dropbox SDK installed, you can do that by running | |
#sudo -H pip install dropbox if on OS X | |
import dropbox | |
dbx = dropbox.Dropbox('YOUR AUTHORISATION TOKEN') | |
dbx.users_get_current_account() | |
for entry in dbx.sharing_get_shared_links('')._links_value: | |
dbx.sharing_revoke_shared_link(entry.url) | |
print entry.url + " - Deleted" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Caveat Emptor, you should definitely test this before you run it!