Withdrew 500+ ignored LinkedIn invites in 5 minutes using a simple script. Step-by-step guide to bulk withdraw pending connection requests and clean up your LinkedIn network efficiently.
500+ Unaccepted LinkedIn Invites. Withdrew Them All in 5 Minutes.
Nothing humbles you quite like seeing how many people ignored your LinkedIn invites.
You know the ones. Sent with good intentions. Part of your founder-led sales play. Prospects you thought would be interested. People you met at events. Warm introductions that went cold.
I'm an Inbox Zero person. It drives me crazy to see clutter. So last week, I decided it was time for a spring clean of my LinkedIn network. The problem? I had over 500 pending connection requests just sitting there. Ignored. Forgotten. A digital graveyard of good intentions.
The Problem with LinkedIn
LinkedIn makes it painfully hard to withdraw sent invites at scale. You have to click through each one individually. Confirm each withdrawal. It's tedious by design.
For 10 invites? Fine. For 50? Annoying. For 500+? Absolutely not happening.
So I did what any resourceful founder would do. I asked Claude to build me a quick script to auto-withdraw old requests. Think of it as spring cleaning for social sellers.
A Word of Caution
DISCLAIMER: Follow at your own risk. We all know LinkedIn doesn't love automation. They have systems in place to detect unusual activity. But this worked for me. No block, no ban, no issues. Your mileage may vary.
I wouldn't normally touch LinkedIn automation if I didn't have to. But manually withdrawing hundreds of requests? Life's too short. Sometimes you need to work smarter, not harder.
Here's How to Do It
Go to My Network, click "Show All" on the invitations section
Click the "Sent" tab and note the total number (prepare to be humbled)
Scroll all the way down until all invites are loaded (this can take a while with hundreds of requests)
Right-click anywhere on the page and select Inspect (this is for Chrome users, but similar steps work in other browsers)
Click on the Console tab in the developer tools
Paste the script (see below)
Press Enter and let the magic run
The script will automatically click through and withdraw all your pending invites. Depending on how many you have, it might take a few minutes. Grab a coffee and watch the numbers drop.
Step by Step Video Walkthrough
Code Snippet
(async function bulkWithdrawLinkedInInvitations() {
console.log("π Starting controlled bulk withdrawal of LinkedIn invitations...");
console.log("β οΈ Will process 100 invitations at a time, starting from bottom");
const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const waitForUserConfirmation = () => {
return new Promise(resolve => {
console.log("\nβΈοΈ PAUSED - Press Enter in console to continue with next batch");
console.log("π‘ Type: continueWithdrawal()");
window.continueWithdrawal = () => {
console.log("βΆοΈ Resuming...\n");
delete window.continueWithdrawal;
resolve();
};
});
};
let totalWithdrawn = 0;
let batchNumber = 1;
while (true) {
console.log(`\nπ¦ Starting Batch #${batchNumber}`);
for (let i = 0; i < 20; i++) {
window.scrollTo(0, document.body.scrollHeight);
await delay(1500);
}
let withdrawButtons = Array.from(document.querySelectorAll("button")).filter(btn => btn.innerText.trim() === "Withdraw");
if (withdrawButtons.length === 0) {
console.log("π No more invitations found. Complete!");
break;
}
withdrawButtons.reverse();
const batchButtons = withdrawButtons.slice(0, 100);
console.log(`π Found ${withdrawButtons.length} total invitations`);
console.log(`π― Processing ${batchButtons.length} in this batch`);
let batchWithdrawn = 0;
for (const button of batchButtons) {
try {
button.scrollIntoView({ behavior: "smooth", block: "center" });
await delay(800);
button.click();
await delay(1000);
let confirmBtn = null;
for (let i = 0; i < 10; i++) {
confirmBtn = Array.from(document.querySelectorAll("button")).find(b => b.innerText.trim() === "Withdraw" && b.getAttribute("aria-label")?.includes("invitation sent"));
if (confirmBtn) break;
await delay(500);
}
if (confirmBtn) {
confirmBtn.click();
batchWithdrawn++;
totalWithdrawn++;
console.log(`β Withdrawn (Batch: ${batchWithdrawn}/100 | Total: ${totalWithdrawn})`);
await delay(2000);
} else {
console.warn("β Confirm Withdraw button not found.");
}
} catch (err) {
console.error("β Error withdrawing invitation:", err);
}
}
console.log(`\nβ Batch #${batchNumber} complete: ${batchWithdrawn} withdrawn`);
console.log(`π Total withdrawn so far: ${totalWithdrawn}`);
await delay(2000);
const remainingButtons = Array.from(document.querySelectorAll("button")).filter(btn => btn.innerText.trim() === "Withdraw");
if (remainingButtons.length === 0) {
console.log("\nπ All invitations processed!");
break;
}
await waitForUserConfirmation();
batchNumber++;
}
console.log(`\nπ COMPLETE! Total invitations withdrawn: ${totalWithdrawn}`);
})();
The Results
In about 5 minutes, I went from 500+ pending invites to zero. Clean slate. Fresh start. Inbox Zero achieved.
It's oddly satisfying. Like clearing out your email inbox or organizing your desktop. You don't realize how much mental clutter those pending invites create until they're gone.
Plus, now when I send new connection requests, I know they're more intentional. More targeted. Higher quality.
Spring Clean Done. Now Back to Selling.
Here's the thing about founder-led sales: it's all about being efficient with your time. You can't afford to waste hours on manual tasks that could be automated. Whether it's withdrawing LinkedIn invites or researching accounts, every minute counts.
That's actually why we built Salesmotion. We automate the tedious parts of sales so you can focus on what matters: building relationships and closing deals.
While this script helped me clean up my LinkedIn in 5 minutes, Salesmotion helps sales teams save hours every single day. Our AI monitors all your target accounts 24/7, surfaces compelling buying signals, and tells you exactly which accounts to focus on and when to engage them.
No more manual research. No more guessing which accounts are ready to buy. No more wasted outreach to prospects who aren't in-market.
Think of it as automation that actually makes sense. The kind that gives you back time instead of creating more work.
If you're spending hours researching accounts, trying to figure out which prospects to prioritize, or wondering when's the right time to reach out, let's talk. We're helping sales teams at companies like Guild Education, Analytic Partners, and Orgvue build more pipeline with less effort.
PS: The script is available in the comments. Use it wisely.
PPS: Feel free to paste my script into Claude or ChatGPT first and ask if it's safe. Seriously, don't trust random scripts on the internet. Verify before you run anything in your browser console.
Why sales teams with Microsoft Copilot, Salesforce, and LinkedIn Sales Navigator still struggle with account intelligenceβand how AI bridges the gap.