Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
How to mass delete facebook messages?

Trying to figure out a way to mass delete facebook messages any help appreciated. Thanks..

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

So there is no clean way that I have found to do this, so I wrote something that works... USE AT YOUR OWN RISK!!!

I needed to mass delete old messages and this does the trick.

Go to messenger.com and login.

hit f12 to open dev tools.

Paste the following in your browser:

function getElementsByText(str, tag = 'a') {
  return Array.prototype.slice.call(document.getElementsByTagName(tag)).filter(el => el.textContent.trim() === str.trim());
}

function doIt(){

    getElementsByText = function getElementsByText(str, tag = 'a') {
      return Array.prototype.slice.call(document.getElementsByTagName(tag)).filter(el => el.textContent.trim() === str.trim());
    }

    document.querySelectorAll('[aria-label="Menu"]')[0].click();

    setTimeout(function(){
      getElementsByText('Delete chat', 'div')[0].click();
    },500);

    setTimeout(function(){
      this.getElementsByText('Delete chat', 'span')[2].click();
    },1000);

}

Then paste this...

var myInt = setInterval(function(){ doIt() }, 500));

This will start running an interval and deleting messages, you can watch it in action!

If you want to stop, refresh the page or

clearInterval(doIt);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!