We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
k s.4
10 years agoNew member | Level 1
remove all shared links
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
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( );
}
- ProblemSolvedNew member | Level 2
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( );
}- JaneDropbox StaffI’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:
- ormajNew member | Level 2
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.
- Koen R.Explorer | Level 4
Would be nice. Can we add this as a feature request?
- Shane H.8New member | Level 1
Why are these links being created? I never created thousands of links one-at-a-time, but now I can only delete them one-at-a-time? I must be missing something. Clearly there is a way to bulk create links, but no way to bulk delete them. That makes very little sense.
If Dropbox is unwilling to add a multi-select for the links, at least a universal "remove all links" feature is absolutely necessary. I am now stuck with thousands of links to content that should not be publicly available.
- Koen W.Helpful | Level 5
Hi Dropbox people,
As a Dropbox for Business user, I have a similar issue with links. As an admin, I can't get a nice overview of all the links created by all users. I can see them in the 'activity' list in the admin console, but not really filtered per person, per date,.... Not like you can list your own links.
Additionally, I don't like to restrict all links to my company by default - it makes it too hard for our people to share with clients, because it means they have to use the browser interface to adjust the permissions. At the same time though, that means I loose control over the links generated and how much of my company's information is readily accessible by outsiders.
Two features requested:
1. Give the admin at leas a possibility to see all links and possibly 'bulk delete'
2. Give the admin a possibilty to have all links expire after a set time by default.
Please please, pretty please.
Koen
- piousminionNew member | Level 2
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.- thewhitehouseHelpful | Level 5
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'").
- piousminionNew member | Level 2
I just tried it on Chrome.
I did get the error you described, but it worked anyway.
WHWYT(What Happens When You Try)?
- Clay J.New member | Level 1
Yeah, especially with the screenshots uploading to Dropbox automatically in OSX I have thousands of links. I want to save the images, but I want to remove all links. After 10min of clicking Xs and confirmation dialogs I'm only through about 1 month's worth of links, there really needs to be an easier way.
- Rick_MExperienced | Level 13
Renaming no longer invalidates liniks?! How are users supposed to know this?
Go here https://www.dropbox.com/links/your_links
and "x" any links not needed.
- RichSuper User II
There is no such command. You need to delete them individually.
- Ben P.16New member | Level 1
If you never use public links, know what you are doing, and want to purge all links try the script below.
(No warranty, batteries not included)
https://gist.github.com/benpage26/f9ca98a317660ab99aa3f8ea223b2051
- Francisco V.3New member | Level 1
Smart move by Dropbox, trying to monetize on all of us..
You let users upload files as easy as possible but make it extremely difficult to erase them...
"everybody's hustling for a buck and a dime" JL...
About 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.
Need more support
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!