Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

How to delete all pending posts in Facebook Group at one Shot?

In this digital age, we use to manage various groups in social handles and especially on Facebook,  where many users want to advertise or post spams frequently. Usually, admins try to approve only appropriate posts. But sometimes it happens due to time constraints they missed to check all the posts for approval and in few days sometimes pending posts reached to large numbers and checking them and approving or deleting them one by one makes it very complicated and irritating task to do.

So, if you are in the same situation then this post is for you.

Step 1. Log-in to your Facebook account and go to your group
Step 2. Go to your group pending list like: https://www.facebook.com/groups/[group-id]/pending/
Step 3. Now “Right click” and select the “Inspect”

inspect


Step 4. In the “Element” section find (use CTRL + F) class name for the “Decline” button

Elements


Step 5. Copy and paste that class name in the below code line number 13

var count_del = 0;

var count_confirm = 0;



var click_del = function () {

//button 'x' delete, class: img sp_WVlmwZ4PzbP sx_8019e2 | img sp_vPWoN8_ZzE7 sx_5cd324 | img sp_uBI2xAARzhd sx_812cfb | img sp_P3HKPeqx6sL sx_f56b15



var inputs_del = document.getElementsByClassName('img sp_WVlmwZ4PzbP sx_8019e2');



for(var i=0; i<inputs_del.length;i++) {

if ( i == 10) { break; };

count_del++;

console.log("Click Delete " + count_del);

inputs_del[i].click();

};

};



var click_confirm = function () {

//button 'Delete' to confirm delete this post

var inputs_confirm = document.getElementsByClassName('_42ft _4jy0 layerConfirm uiOverlayButton _4jy3 _4jy1 selected _51sy');

for(var i=0; i<inputs_confirm.length;i++) {

if ( i == 10) { break; };

count_confirm++;

inputs_confirm[i].click();

console.log("Click Confirm " + count_confirm);

};

};



var click_ok = function () {

//button 'Okay' when a post was deleted already

var inputs_confirm = document.getElementsByClassName('_42ft _4jy0 layerCancel uiOverlayButton _4jy3 _4jy1 selected _51sy');

for(var i=0; i<inputs_confirm.length;i++) {

if ( i == 10) { break; };

inputs_confirm[i].click();

console.log("Click OK ");

};

};



var interval_del = setInterval( function () { click_del() }, 8000);

var interval_confirm = setInterval( function () { click_confirm() }, 3000);

var interval_ok = setInterval( function () { click_ok() }, 8000);



//clearInterval(interval_ok);



//automatically scroll down to the bottom of page - ref: http://bit.ly/1O4tvHd

var interval_bottom_page = setInterval( function () { window.scrollTo(0,document.body.scrollHeight) }, 30000); ;


Step 6. Now go to console section and copy and paste the below code and HIT enter

console


Step 7. Now leave until it deletes all the pending posts
Step 8. Thanks, me 😛 and comment below for any suggestion or problems

Important notes:

  • This action will delete all posts in your pending list, therefore make sure you don’t need them anymore.
  • Please use these steps at your own risk. We don’t provide any support for it.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in delivers cost-effective bike rental solutions, empowering users to save on transportation while enjoying reliable two-wheelers. Ideal for city commutes, sightseeing, or adventure rides.

Related Posts

Hudson Master-Slave Setup: Distributed Build Architecture and Agent Launch Methods

Learn how Hudson distributes builds between a master and one or more slave nodes, and how to launch agents using SSH, JNLP, scripts, or Windows service mode. This revised guide clarifies the execution flow, configuration options, and common pitfalls in legacy Hudson environments.

Read More

Ant build.xml for WAR Packaging and Tomcat Deployment (Annotated Reference)

This guide turns a legacy Ant WAR build sample into a practical reference you can reuse. You will learn the target flow, required layout, runnable commands, and common pitfalls before using it in CI/CD.

Read More

Sonar PDF Report Plugin 2.1: Integrations, SVG Support, and What the Release Actually Added

This revised note explains what was explicitly announced for Sonar PDF Report Plugin 2.1: broader plugin data inclusion and SVG image support. It also maps the reporting workflow and gives a practical adoption checklist for DevOps teams maintaining legacy Sonar setups.

Read More

Sonar 2.2 Release Highlights: Filters, Plugin Classloaders, and Upgrade Notes

Sonar 2.2 introduced homepage filters and independent plugin classloaders, aimed at faster quality triage and easier plugin development. This revised guide explains what changed, why it mattered, and where to find the original release resources.

Read More

WordPress Typography Patterns: Styled Lists, Notice Boxes, and Code Blocks with Reusable CSS

This guide modernizes a legacy WordPress typography post into practical, reusable patterns for custom list markers, callout boxes, and code styling. It focuses on maintainable CSS and editor-friendly markup you can reuse across posts and documentation pages.

Read More

ITIL Explained for IT Operations and DevOps Teams: v2/v3 Processes, Lifecycle, and Practical Templates

This guide explains ITIL in clear engineering terms, based on the original post’s v2 and v3 content. You’ll get process relationships, comparison tables, and practical templates you can adapt for incident, problem, change, and release workflows.

Read More