cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

remove all shared links

remove all shared links

k s.4
New member | Level 1
Go to solution

Hi, I have many links in the links-list. Way to many. I take it that the files linked are accessible for anyone with the link. I want all these links removed with one command. It is too many to do it manually for each one.
Thanks

45 Replies 45

Derek L.6
New member | Level 1
Go to solution

If I select to "link & share" a folder I am sending to Client A, can all my other clients (with links to their own folders) also see Client A's folder? (even though it's nothing to do with them!). Clients don't always have Dropbox on their computers so I "link" them.  It's just a security question I was worried about.  

James H.40
New member | Level 1
Go to solution

I had to open the console, import jquery, and have it click all the links for me. This will have it click "x" and the confirm button every second:

var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type.
jQuery.noConflict();
setInterval(function(){jQuery('.remove-link')[0].click();setTimeout(function(){jQuery('.button-primary')[0].click()}, 500);}, 1000)

Noki
New member | Level 2
Go to solution

 

Nuno G.2. ...

Man. It worked like a charm. I love you so much right now. Thanks a LOT. 

Dereck H.
Helpful | Level 6
Go to solution

Thanks James. Quite stupid dropbox can't implement a real solution.

piousminion
New member | Level 2
Go to solution

Update:

 

Open your browser's debug/dev console and paste this:

var jq = document.createElement('script');
jq.src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);

Hit enter, wait 2 seconds and paste this:

jQuery.noConflict();
setInterval(
	function(){
		setTimeout(function(){jQuery('.mc-overflow-button')[0].click();}, 500)
		setTimeout(function(){jQuery('.delete-link')[0].click();}, 1000);
		setTimeout(function(){jQuery('.button-primary')[0].click();}, 1500);},
 1000);

Hit enter and wait for it to finish.

This was tested 2017/04/15 on Firefox, but should work on Chrome as well.

thewhitehouse
Helpful | Level 5
Go to solution

No Worky 😞

 

Content Security Policy: The page's settings blocked the loading of a resource at https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js ("script-src 'unsafe-eval' https://www.dropbox.com/static/compiled/js/ https://www.dropbox.com/static/javascript/ https://www.dropbox.com/static/api/ https://cfl.dropboxstatic.com/static/compiled/js/ https://www.dropboxstatic.com/static/compiled/js/ https://cfl.dropboxstatic.com/static/previews/ https://www.dropboxstatic.com/static/previews/ https://cfl.dropboxstatic.com/static/javascript/ https://www.dropboxstatic.com/static/javascript/ https://cfl.dropboxstatic.com/static/api/ https://www.dropboxstatic.com/static/api/  'nonce-xxxxxxxxxxxxxxxx'").

 

piousminion
New member | Level 2
Go to solution

I just tried it on Chrome.

 

I did get the error you described, but it worked anyway.

 

WHWYT(What Happens When You Try)?

ProblemSolved
New member | Level 2
Go to solution

Please be careful as it will delete all your shared links! You have been warned! Works in Chrome (61.0.3163.100) maybe firefox and internet explorer but no links to test 😃 Open the browser's console window (right click anywhere and select inspect or control+shift+i) while in the shared links page. Paste the following code in the console command line, click enter and it will delete all shared links. 

 

Due to secure http loading jquery (as suggested by other post) does not work, so this option is fine with vanilla javascript. The script below simulates consecutive mouse clicks: 1. click the three dot button next to the link, 2. click the delete link button in the drop down, 3. click the delete link buttin in the pop up dialog box. Note that it will take a minute to execute all those but in the end the list shall be clear. Hope it save you some trouble... and again be careful

 

for( var index = 0; index < 1000; index++ )
{
   var dots = document.getElementById("bubbleDropdownTarget-" + index );
   if( dots == undefined ) continue;
   dots.click( );
   document.getElementsByClassName( "bubble-menu-item" )[0].click( );
   document.getElementsByClassName( "button-primary dbmodal-button" )[0].click( );
}

Jane
Dropbox Staff
Go to solution
Hey @ProblemSolved, thanks for your contribution & posting your workaround here! :gear: :tools:
 
I’ve accepted it as a Solution, as I had as chance to check it myself & the Javascript code worked as expected. Of course, I’d urge caution in using it on one's own Dropbox account (just rephrasing in case someone hasn’t noticed your initial warning)! 
 
Again, thanks for sharing & I hope you have a great rest of the day! :slight_smile:

 


Jane
Community Moderator @ Dropbox
dropbox.com/support

 

Heart Did this post help you? If so please give it a Like below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

ormaj
New member | Level 2
Go to solution

This worked for me in Chrome. Oddly it looked to not show anything happening. Ilet the window just sit there for 5 mins, came back, and copied the Links URL in a new browser tab. Now, all the links that were there are now gone, and I've confirmed I'm no longer sharing any of the links from a massive list I had. If I need to reshare, I'll do so from a new URL, but now my old boss cant steal my work from my past time with him.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    James H.40 New member | Level 1
  • User avatar
    Derek L.6 New member | Level 1
  • User avatar
    Ben P.16 New member | Level 1
  • User avatar
    Clément C. Helpful | Level 5
What do Dropbox user levels mean?