How To Delete/Remove All Members From Facebook Group At Once.

Facebook setup a new milestone as a social networking platform. Besides there many more platform to interact with people. But is all one pack of all features. We can connect with others and as we can do business on Facebook. Mostly commonly we use to connect via groups and pages. Pages are mostly likes used by brands and celebrities. If you want to create then checkout easy guide to grow Facebook page. People create groups for to connect with people of similar interests. Facebook groups are like a community place for discussion and selling things. Facebook groups are of three types may be open, closed and secret. So we can easily create and be a part of any group. But sometimes we create group and then our mind changes and we want to remove all members from Facebook group at once but as we know their no option on Facebook to remove and delete at once.  If  you want to delete Facebook groups easily but don’t worry here is the solution.

How To Remove All Members From Facebook Group ?

As we all are aware that there is no option to delete Facebook. So to proceed with that process we have to remove each and every person from that group to make group deletion option visible. But the another great issue is there even no option to remove all members at once from Facebook group. So we need to manually remove then one by one. No doubt that task will be better if having few hundreds otherwise this task going to be time consuming. To solve this panic situation just below below given steps.
  • First of all open that Facebook group which you want to delete.
  • Now Switch to members tab from navigation.
  • All group list will be visible and make sure you this from account having admin privileges.
  • Now right click anywhere and click on Inspect element or press F12 button from keyboard.
  • Now Copy each and every code given in below script.
  • [accordion] [item icon="diamond" title="Script"]
    var deleteAllGroupMembers = (function () {
        var deleteAllGroupMembers = {};
        // the facebook ids of the users that will not be removed.
        // IMPORTANT: add your own facebook id here so that the script will not remove yourself!
        var excludedFbIds = ['1234','11223344']; // make sure each id is a string!
        var usersToDeleteQueue = [];
        var scriptEnabled = false;
        var processing = false;
     
        deleteAllGroupMembers.start = function() {
            scriptEnabled = true;
            deleteAll();
        };
        deleteAllGroupMembers.stop = function() {
            scriptEnabled = false;
        };
     
        function deleteAll() {
            if (scriptEnabled) {
                queueMembersToDelete();
                processQueue();
            }
        }
     
        function queueMembersToDelete() {
            var adminActions = document.getElementsByClassName('adminActions');
            console.log(excludedFbIds);
            for(var i=0; i<adminActions.length; i++) {
                var gearWheelIconDiv = adminActions[i];
                var hyperlinksInAdminDialog = gearWheelIconDiv.getElementsByTagName('a');
                var fbMemberId = gearWheelIconDiv.parentNode.parentNode.id.replace('member_','');
                var fbMemberName = getTextFromElement(gearWheelIconDiv.parentNode.parentNode.getElementsByClassName('fcb')[0]);
     
                if (excludedFbIds.indexOf(fbMemberId) != -1) {
                    console.log("SKIPPING "+fbMemberName+' ('+fbMemberId+')');
                    continue;
                } else {
                    usersToDeleteQueue.push({'memberId': fbMemberId, 'gearWheelIconDiv': gearWheelIconDiv});
                }
            }
        }
     
        function processQueue() {
            if (!scriptEnabled) {
                return;
            }
            if (usersToDeleteQueue.length > 0) {
                removeNext();
     
                setTimeout(function(){
                    processQueue();
                },1000);
            } else {
                getMore();
            }
        }
     
        function removeNext() {
            if (!scriptEnabled) {
                return;
            }
            if (usersToDeleteQueue.length > 0) {
                var nextElement = usersToDeleteQueue.pop();
                removeMember(nextElement.memberId, nextElement.gearWheelIconDiv);
            }
        }
     
        function removeMember(memberId, gearWheelIconDiv) {
            if (processing) {
                return;
            }
            var gearWheelHref = gearWheelIconDiv.getElementsByTagName('a')[0];
            gearWheelHref.click();
            processing = true;
            setTimeout(function(){
                var popupRef = gearWheelHref.id;
                var popupDiv = getElementByAttribute('data-ownerid',popupRef);
                var popupLinks = popupDiv.getElementsByTagName('a');
                for(var j=0; j<popupLinks.length; j++) {
                    if (popupLinks[j].getAttribute('href').indexOf('remove.php') !== -1) {
                        // this is the remove link
                        popupLinks[j].click();
                        setTimeout(function(){
                            var confirmButton = document.getElementsByClassName('layerConfirm uiOverlayButton selected')[0];
                            var errorDialog = getElementByAttribute('data-reactid','.4.0');
                            if (confirmButton != null) {
                                if (canClick(confirmButton)) {
                                    confirmButton.click();
                                } else {
                                    console.log('This should not happen memberid: '+memberId);
                                    5/0;
                                    console.log(gearWheelIconDiv);
                                }
                            }
                            if (errorDialog != null) {
                                console.log("Error while removing member "+memberId);
                                errorDialog.getElementsByClassName('selected  layerCancel autofocus')[0].click();
                            } 
                            processing = false;
                        },700);
                        continue;
                    }
                }
            },500);
        }
     
        function canClick(el) {
            return (typeof el != 'undefined') && (typeof el.click != 'undefined');
        }
     
        function getMore() {
            processing = true;
            more = document.getElementsByClassName("pam uiBoxLightblue  uiMorePagerPrimary");
            if (typeof more != 'undefined' && canClick(more[0])) {
                more[0].click();
                setTimeout(function(){
                    deleteAll();
                    processing = false;
               }, 2000);
            } else {
                deleteAllGroupMembers.stop();
            }
        }
     
        function getTextFromElement(element) {
            var text = element.textContent;
            return text;
        }
     
        function getElementByAttribute(attr, value, root) {
            root = root || document.body;
            if(root.hasAttribute(attr) && root.getAttribute(attr) == value) {
                return root;
            }
            var children = root.children,
                element;
            for(var i = children.length; i--; ) {
                element = getElementByAttribute(attr, value, children[i]);
                if(element) {
                    return element;
                }
            }
            return null;
        }
        return deleteAllGroupMembers;
    })();
    deleteAllGroupMembers.start();
     
    // stop the script by entering this in the console: deleteAllGroupMembers.stop();
    [/item] [/accordion]
  • After that switch to console tab and paste copied script and press enter as shown below.
  • remove all friends fb group script.
  • Without few removal process will begin and it will going to take time depend on total members. So its better to leave as it is until its done.

How To Delete Facebook Group. ?

  • After Removing all friends from group refresh it. Now only admin id will be left.
  • leave group option
  • Simply click on leave group and popup will appear to leave and delete group.leave delete facebook group option
Hence, we suggest you to be very careful. Do not start this process unless you have made up your mind and are very sure that you want to delete your Facebook group. Because once it done it cannot be recovered. So make sure you have a backup of all the important information,files & photos in order to avoid inconvenience later.
In Conclusion, we hope that this guide will be helpful for you to remove all members from Facebook group and also able to delete Facebook group permanently. Please share your thoughts in comments below and share it as well.
Labels:

Post a Comment

[blogger][facebook][disqus]
switcher
Layout
Boxed Full
Boxed Background Image
Main Color
#007ABE

Shawon Khan

{picture#https://1.bp.blogspot.com/-BDYMzedJdjs/UAI7F8ZNFKI/AAAAAAAAACY/yhMlXb-dkDU/s50/avatku.jpg} Nor is it at all prudent for the hunter to be over curious touching the precise nature of the whale spout. {facebook#http://facebook.com} {twitter#http://twitter.com} {google#http://google.com} {pinterest#http://pinterest.com} {youtube#http://youtube.com}

Contact Form

Name

Email *

Message *

Powered by Blogger.