If you do not know (or have a faintest clue) what is "Chrome Dev Console" please do not attempt deleting your LinkedIN connections using the script presented here.
Please consider purchasing a very powerfull but user friendly LINKED IN HELPER.
Or find a friend who can understand this text. Or just give up until you do. If not sure what are you doing here, please do not try on your own, anything described. Just leave.
Use Google Chrome browser. Login to your LinkedIN account. Go to the page:
https://www.linkedin.com/mynetwork/invite-connect/connections/
A bit of an explanation, for the developers:
$('[data-control-name="ellipsis"]').click();
Above finds all the '. . .' buttons on the page where connections are listed, it returns the firsts one and call the click event on it. If you click on any o them the next intermediate button pops up, probably just to make the removal a bit more tedious
// notice two spaces after remove
$('[aria-label="Remove from connections"]').click();
After calling a click on the first ellipsis button found, above provokes "Remove Connection" pop-up, with button "Removed" that can be selected with and clicked on with the following jquery line:
$('button[data-control-name="confirm_removed"]').click()
Thus the final script is:
var JQ = $ ;
// for every contact
setInterval( function () {
// this provokes the click on '...'
JQ('[data-control-name="ellipsis"]').click();
// wait on second then provoke a click on "Remove from connections"
setTimeout(function(){ }, 1000);
JQ('button[aria-label="Remove from connections"]').click();
// wait one second
setTimeout(function(){ }, 1000);
JQ('button[data-control-name="confirm_removed"]').click();
} , 1000 ) ;
Open the dev console with key F12 and use this script.
It will remove all the connections one by one (inside 3 seconds per each), and will proceed running indefinitely. Just kill the browser and open it again.
This works as of 2020-FEB-01
© 2020 by [email protected], Licence CC BY SA 4.0
Got this error 👇:
Uncaught TypeError: Cannot read properties of null (reading 'click')
at :5:37