• DELETE ALL FACEBOOK PAGES (UPDATE!)

    For those who took the survey, thank you! Right now, it's at 47% Yes, 53% No based on close to 100 responses. I'll create the video & report if it goes above 55% Yes.

    I am also exploring different payment options so I can offer it for free somehow. I'll keep you guys updated as I add some stuff to the survey. Watch this space for updates!
  •  

Get Updates Via RSS

RSS Feed
Whaz Iz RSS?

Get Updates Via Email

How To Delete All Facebook Groups And Wall Posts From Facebook Using Imacros

By Cynthia On August 29, 2009 Under Facebook

A little story time before we get into the technical details.

I have an old unused Facebook account that I was actively on for the past 2 years. But I stopped using it at a point because there was too much group spam in my Facebook inbox. You know those annoying groups that send you messages once per day, multiply that by X number of groups you have, then multiply it by about 10%, and you get an inbox full of crap you don’t really care about – daily.

I was busy at the time, and I was simply too lazy to delete my groups manually. So I abandoned the profile, opened a new one, and added back people I wanted to keep in touch with.

Fast forward to today. I now know how to use imacros for automating a lot of my tasks! Armed with this new knowledge, I created a simple imacros script, looped it about 200 times, walked away to get some snacks, came back…Done!

All 200 something Facebook Groups are gone from my profile! Okay with the exception of 3 groups that I created myself. Those are still there. But my profile is now spic and span.

It is so damn cool I cannot express it in words. You really just need to try it yourself.

I repeated the same thing with deleting wall posts – this was a little more buggy, but I still managed to get it to work. It messes up at some point and shows “failures” but that’s alright. Better than deleting all of them manually one by one. You’d get carpel tunnel in no time from that.

Download Imacros

If you don’t know what imacros is, you might want to read up on it here. It looks a bit intimidating at first, but imacros is seriously the easiest automation software/plugin to use.

I recommend imacros for Firefox. You can install the plugin here.

To open up imacros in the sidebar, press F8. Once you’ve got imacros on your Firefox, do a mock record – meaning, go to Play > Record > Then click Stop right away. Then click Save. Enter a descriptive name for it like “delete Facebook groups .” You should now see it in the left sidebar. Right click on the .iim file and go to “edit macro.”

The Imacros Script (Delete All Facebook groups)

Paste in:

VERSION BUILD=6111228 RECORDER=FX <– note that this line will be different if you have a different version of imacros
TAB T=1
SET !ERRORIGNORE YES
SET !LOADCHECK NO (Update Jan 18 2010 – this is not needed! just delete this line)
SET !TIMEOUT 100
SET !DIALOGMANAGER NO
TAG POS=1 TYPE=A ATTR=TXT:Leave<SP>Group
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:remove&&VALUE:Remove
WAIT SECONDS=2

Now you should be already on the Facebook Groups page itself BEFORE running this macro. When I ran it, there was one instance of a timeout, but that didn’t stop the script itself, so just click “close” on the timeout notice when you see it and it’ll be fine.

*** IMPORTANT *** Remember to click Play(loop) when running this macro and specify however many groups you have. This will loop the script, so it’ll run X amount of times.

You may be wondering… well, what if I don’t want to delete ALL my groups? Well, then it will be a bit tricky. What I’d do is, open these groups in a new tab, so when you’ve wiped out all the groups, you can add them back easily.

The Imacros Script (Delete All Facebook Wall Posts)

Repeat the same thing. Go to Play > Record > Then click Stop right away. Click save, enter a name, and then edit the .iim file.

Then paste in:

VERSION BUILD=6111228 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !LOADCHECK NO (Update Jan 18 2010 – this is not needed! just delete this line)
SET !TIMEOUT 100
SET !DIALOGMANAGER NO
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
REFRESH

You may get multiple errors when running this, that’s why I add in “refresh” at the end of the script so it’ll refresh the page. It’s very likely that you have to make some edits or changes. You may need to click “older posts” on your Facebook wall, especially closer to the end of your wall posts. This script is easy to modify and should be easy to understand. I’m assuming you have at least some basic knowledge of it.

Any questions, just leave them in the comments and I’ll try to help you out when I have time!

** the donation button is buggy at the moment. I will put it back up when it’s been fixed. Thanks for all the donations so far <hugs>! **

54 comments - add yours
a facebook user

September 1, 2009

omg wow thx very much
i joined to many groups for the mafia wars game to get more ppl in my mafia and free gift, been looking how i could leave all groups,
this finally got the job done, awesome thx

Cynthia

September 1, 2009

Oh cool, that’s awesome! Didn’t think people would use it for mafia wars, but yeah that’s a really good idea actually.

Sherry

September 21, 2009

Have you ever created a macro for deleting multiply people off your friends list in Facebook?

Cynthia

September 22, 2009

@Sherry – No I haven’t, because I haven’t had a need to delete people from my friends list! I just create new FB accounts ;)

Sorry I won’t be able to test it for you, since I don’t want to delete anyone on my list, but here are instructions you can follow to create your own.

1. First, if you want to delete specific people, put them all into a new Friend List.
2. Fire up imacros and record yourself deleting everyone down the page by clicking on the “X” button. (In theory this should work but sometimes it doesn’t
3. Stop it, and save it.

Now the next time you want to delete more people, just put them in this Friend List for removal, and just run the macro.

It’s not exactly automated, but that’s what I can think of.

Cynthia

September 22, 2009

Or, if you’re thinking ahead and have people you MAY want to get rid of in the future, stick them in that Friend List to begin with. Then it’ll be easier later on to remove them.

Angela

October 6, 2009

Hey, I am completely new to this, but it worked so good to clear up my facebook…but now I have run into the problem of it not continuing b/c of the older posts button preventing it…I know you mentioned this in your write-up , but i have no idea how to program that step in…thanks!

Xsouldeath

October 9, 2009

thank you so much.! I will leave this on for a few years and it will delete them all :P .. I guess that’s the only GUI way.. If only you could delete them by executing the JavaScript function directly.. Rather than seeing button clicks or whatever..
I suggest you record the “Just ” and add that to the top of the macro if you want to delete just your wall posts.

Xsouldeath

October 9, 2009

also important note is that Facebook only keeps roughly 2 months tops worth of of Facebook posts.. For someone who posts like 25 posts a day that is. so I guess overall that’s about 1500 posts…
Just so people who have been years with Facebook don’t get discouraged and think they will need to run this for years.

P.Chachi

November 4, 2009

Thank you THank you Thank you!!
Your article just pimped up my profile by 500%.
Now I can worry about other stuff.
YOu rock.
Much love.
P

Matt

November 11, 2009

What would I do to the script to make it so it leaves the first two wall posts alone?

Nixa

November 22, 2009

Thank you so much!

I wrote a macro for removing fan pages (only thing u have to change in macro is USERID):

VERSION BUILD=6240709 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT 10
URL GOTO=http://www.facebook.com/profile.php?v=info&ref=nf&id=USERID
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=HREF:/social_graph.php?node_id=USERID&filter=fanned
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=CLASS:UIObjectListing_Title
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:RemoveMefromFans
WAIT SECONDS=1

Gavin

November 23, 2009

Does anyone know a way for firefox to pick up text written into peoples walls, im having huge trouble getting the FF to pick up text, the submit and left click into the box are fine. IE is working fine for this, but limited to 3 loops only :(

mario

November 26, 2009

i pretty dumb at all the computer macros and computer stuff. i don’t know where to put how many groups i want i have to delete them all

Please help ! hate this fb crap !

mario

November 26, 2009

THANKS A LOT ! IT WORKED !!!!! I DELETED ALL THAT CRAP !!!!

mario

November 26, 2009

BOTH GROUPS AND WALL POSTS WERE ALL DELETED THANKS A LOT ! ! !

Sixpanel

November 26, 2009

I ran this macro, but it didn’t delete anything…what am I doing wrong?

MEP

December 13, 2009

Thank-you…. : )

Rhino

December 15, 2009

If you are so inclined, you can use the service at http://de.cipr.us and outsource the cleaning up of your profile. It costs you a few bucks, but it works on Twitter and Facebook profiles.

[...] This is a really outdated post (written 1 year ago). You may want to check out my other post on How To Delete All Facebook Groups And Wall Posts From Facebook Using Imacros [...]

[...] there was so much interest in my previous post on how to delete Facebook wall posts and groups, I’m going to followup with a short tutorial on how to remove all Facebook e-mail [...]

Cynthia

December 16, 2009

@Angela – If it stops continuing, you just need to stop the imacro, click the “older posts” and run the imacro again.

@Matt – What to do so it leaves the first two wall posts alone – well, you need to program it differently. I think it may be as simple as changing the TAG POS=1 part to a different number. Unfortunately I can’t test it out since I don’t want to delete any of my current wall posts. Just try to delete the first page of wall posts (excluding the first 2 wall posts), and then look in the script to see how it’s different than mine. Then report back :)

@Nixa – thanks for the fan page imacro! I’m not ready to delete my fan pages yet (I love many of them) so I will pass on it for now ;)

@Sixpanel – It didn’t delete anything at all? Sometimes Facebook changes their interface, and things stop working. But it seems to be working for other people. What happens when you run the script?

Cynthia

December 16, 2009

*** ANNOUNCEMENT ***

I just wrote up another tutorial on How To Remove All Facebook E-mail Notifications In 10 Seconds.

Here’s the link to check it out: http://www.cynthiaperla.com/facebook/579/how-to-remove-all-facebook-e-mail-notifications-in-10-seconds.html

Hope you guys find it as useful!

chris

December 26, 2009

great!!

is it possible to write a macro that removes any comments on other walls, pics and so??

Gemma

December 29, 2009

Does this work on a Mac? I have loaded it but when I press ‘record’ and ’stop’ the stop button stays illuminated and it doesn’t give me an option to save.

Azra

January 4, 2010

If you could make one for deleting all fan pages that would be great!! :)

frankiesaysrelax

January 4, 2010

this is brilliant. a pure life saver.

now does anybody know how to delete all the pages?? (‘become a fan’)
cause i have about 300 of them from when i first joined and they are SOO annoying.. any ideas???

André

January 5, 2010

This script requires your language to be set to English. Perhaps note that. Also, how do you deal with the “Older Posts” button?

Great script, though.

André

January 5, 2010

Aha! I recorded a macro of me clicking on the “older posts” button, and then stitched that into the delete script, and that worked.

Webfreak

January 18, 2010

Hi Cynthia

Thanks for this! It is definitely a gem of a script! I have all sorts of uses for it, including deleting FB posts!

Thank you very much!

Warm Regards
Jaun-Vincent
PS. My CC is maxed BUT I will return to make a donation as I always appreciate quality posts like yours.

DeWitte

January 21, 2010

Wow – you’re the bomb! That’s a lot! I was looking for a greasemonkey script to do this and then when I couldn’t find one I started writing one and in the middle of that I found your post. Excellent!

Gemma

January 25, 2010

PLEASE can someone tell me why I can’t get this to work? I am working on a Mac but using Firefox. When I open it up it tells me “Can not open null path to read macros.
Would you like to correct path settings now?” what do I click? Either way, it won’t let me PLAY, REC & SAVE. It will record and stop but won’t play or save????

PLEASE HELP ME :)

Chuck

January 26, 2010

Worked like a charm. Made a couple of modifications such as speed from 3 secs to 1 sec. I also copied and pasted the program to about 3 times the original length which made it run perfectly. Deleted 3 months of wall posts in about a half an hour. It would have taken me a whole day to do it manually. I have alot of friends on FB and there were a TON of wall posts…especially from the time between T’giving and Xmas. I had literally hundreds of posts to delete. Thx Cynthia ; ))

thebaus

January 26, 2010

@gamma: click yes and then just go to path.. put in where it will save it.
then just close the window. if any other message pops up just click yes.
Now click on edit and there click on the button “activate macrolist” or maybe “refresh macroliste” – I have the german version.

Done :)
Now you can use it.
Hope I could help.

Anonymous

January 29, 2010

Hi, I ran the script and it seemed to work fine, although, when I signed in to facebook lite all my old posts were still on my wall. I’m wondering if there is a similar macro for facebook lite?

John J

January 31, 2010

VERSION BUILD=6111228 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT 100
SET !DIALOGMANAGER NO
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts

John J

January 31, 2010

The above lines inserts,
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
which clicks on the “Older Posts” button periodically.

Jim

January 31, 2010

@Sherry
Theres a Firefox Greesemonkey Script to delete multiple friends

Misha

February 5, 2010

Hello, Cynthia!

Thanks for the script to delete groups!

I have a question about the script for removing posts. I tried this on a few posts and it did remove them from my profile/wall, but the comments remain on the original page. For example, if I commented on Joe Smith’s status, it removes this from my profile, but my comment remains on Joe Smith’s page.

In short, there is a difference between removing the post from my own profile and deleting the comment itself. How can I delete the actual comment?

I tried the following:

I recorded a script that opened the original page on which the comment was made in a new tab (by right-clicking on the word “status” and clicking “open link in new tab”), went to the new tab, clicked “delete” on the comment, confirmed the delete by clicking “delete” in the dialogue box that opens, closed that tab, then returned to the initial tab.

VERSION BUILD=6500125 RECORDER=FX
TAB T=1
URL GOTO=http://www.facebook.com/home.php?#!/profile.php?ref=profile&id=1246149
TAB T=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:commentable_item_208680530 ATTR=NAME:delete[10861688]&&VALUE:Delete
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete&&VALUE:Delete
TAB T=2
TAB CLOSE
TAB T=1

However, the script is too specific. Is there a way to generalize this?

Ebony

February 9, 2010

Ive tried this, but it doesnt delete my groups?
What am I doing wrong?

Emma

February 12, 2010

could manage to get this to work im new to all this i copied what you did but doesnt seem to of worked any ideas where im going wrong?

Emma

February 12, 2010

sorry i meant to say i couldnt get it to work ^

jake

February 15, 2010

How can I delete all comments I have ever made on facebook?

Liz

February 19, 2010

Is there a script to delete all previous status updates?

baaaaby

February 24, 2010

heheh, OMFG, thank you soo much! <3

Feroshious

February 26, 2010

Still trying to get rid of FAN pages on Facebook, still no glory… anyone got the answer?

Webotec

March 1, 2010

VERSION BUILD=6600217 RECORDER=FX
SET !ERRORIGNORE YES
TAB T=1
URL GOTO=http://www.facebook.com/editapps.php?v=allowed#
TAG POS=3 TYPE=A ATTR=HREF:http://www.facebook.com/editapps.php?v=allowed#
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:remove&&VALUE:Remove
WAIT SECONDS=6
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:Okay
WAIT SECONDS=1

This is a script for removing all APLICATIONS.
If stops after one loop change this line:
WAIT SECONDS=6
to:
WAIT SECONDS=10

Set Play loop = number applicatioins + 10% :P
Example:
356 applications, Play Loop Max = ~380 :)

jack

March 2, 2010

I can not get the sidebar to come up so can not start the script. Any help would be greatly appreciated (I am new to this but have the need to erase my daughter’s facebook wall…) Thanks!

Ducky

March 5, 2010

Going to try this out but is there a way to JUST delete certain things off my profiles? I want to keep the wall posts sent by friends but would rather delete the one liners like “XXX commented on Y’s status” or “XXX liked Z’s status” sort of thing. I am pretty sure i STILL have comments/stuff from 2007 and 2008 (not as much as in 2009 though lol)

Robin Majumdar

March 6, 2010

This looks interesting – will the script to delete wall posts work for “Notes” ?

I have thousands of notes (originally imported via an RSS feed) on a Facebook page that I want to batch delete…

Robin Majumdar

March 6, 2010

OK, seems to be working great (!!) to delete notes … but I’m getting a lot of “failed to delete minifeed story” popups ?

Anyone have ideas?

Thom

March 7, 2010

Thanks!

seb

March 9, 2010

not even close to working. why? help.

Ficholas Norneris

March 9, 2010

How do you even get to this Groups page? I go to Account Edit Friends and there’s tabs for things like Pages and whatnot but not Groups.

Are Groups the same thing as fan Pages? I’m trying to remove all Groups and all Fan Pages from my Facebook, starting with Groups.

ivan

March 10, 2010

for the script of removing from all fan pages, for the last move it says it cant find the “RemoveMefromFans”. anybody can fix this? thx!