Skip to content

Instantly share code, notes, and snippets.

@michaelvickersuk
Last active March 27, 2023 11:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save michaelvickersuk/492f2cd1b872cef1038c51983635150c to your computer and use it in GitHub Desktop.
Save michaelvickersuk/492f2cd1b872cef1038c51983635150c 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('[data-control-name="ellipsis"]')[0].click();
}, 250);
setInterval(function () {
document.querySelectorAll('[aria-label="Remove from connections"]')[0].click();
}, 250);
setInterval(function () {
document.querySelectorAll('[data-control-name="confirm_removed"]')[0].click();
}, 250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment