Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mykeln/51ca1a9c3c8711f4bf801683970dbd43 to your computer and use it in GitHub Desktop.
Save mykeln/51ca1a9c3c8711f4bf801683970dbd43 to your computer and use it in GitHub Desktop.
Delete all the network connections from your LinkedIn account
/*
1. Log into your LinkedIn account
2. Select My Network > Connections (https://www.linkedin.com/mynetwork/invite-connect/connections/)
3. Open the console (F12)
4. Copy the below and paste into the console
5. Press enter and your connections will be removed one by one
*/
setInterval(function () {
document.querySelectorAll('[aria-label^="More actions for"]')[0].click();
}, 250);
setInterval(function () {
document.querySelectorAll('[class="mn-connection-card__dropdown-option-icon"]')[0].click();
}, 250);
setInterval(function () {
document.querySelectorAll('[aria-label^="Remove "]')[0].click();
}, 250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment