This script was made because currently LinkedIn is not providing a bulk message deletion or archiving option.
Requirements:
- Nodejs version > 10.16
- Google Chrome
- To be logged into your LinkedIn account on the Google Chrome browser
- 3 minutes to set the script up
In order to run the script, you will need to replace the values of 2 constants located in the inquirer.js
file.
Namely: CHROME_EXECUTABLE_PATH
and USER_DATA_DIR
.
To obtain these values you need to perform the following actions:
-
Open Google Chrome, paste the following in the address bar, and hit enter
chrome://version
-
Copy the following information:
Executable Path
into theCHROME_EXECUTABLE_PATH
constant.Profile Path
into theUSER_DATA_DIR
constant.
To run the script with administrative privileges - simply navigate into the cloned folder and run the following commands:
-
npm install
- this command needs to be executed only once (on the 1st run). -
npm run start
- Administrative privileges are necessary for the cache copying procedure.
That's it!
Sit back, relax and let the script handle the messages for you.
There is a 2 seconds delay between the message deletions - you can change, or remove it but with this delay, you can be sure that the LinkedIn server handled correctly all of your requests.