I’ve used Dropbox for a long, long time and shared tonnes of stuff with people over the years. So after all this time I had hundreds of shared links and folders with people who I’ve long since forgotten about.

In the Sharing tab on Dropbox, you can disable each link but that doesn’t really scale when you have dozens and dozens to remove. I’ve written the Python script below that tidies up all of those old links.

In order to get this run, you will need to create your own App in Dropbox at https://www.dropbox.com/developers/apps/create which is straightforward to do.

Creating a Dropbox app

Just copy the gist above, swap out YOUR AUTHORISATION TOKEN and then run!