This is a guest post by Gaganpreet Arora AKA bitgeek.

My Facebook app list was cluttered with useless apps accumulated over the time I had joined Facebook. The worst thing is that Facebook does not allow you to remove multiple apps in one go. You have to select one, confirm on “Are you sure?” first and then click on “Okay” when it is deleted. Very cumbersome. So I wrote a Javascript hack to remove all of the apps in one go.

Warning: This will actually delete all the apps

Step 1

Go to:

Step 2

Select and copy the complete code below and paste it into the address bar.

function postwith (to,p)
  var myForm = document.createElement("form");
  myForm.method="post" ; myForm.action = to ;
  for (var k in p)
    var myInput = document.createElement("input") ;
    myInput.setAttribute("name", k) ;
    myInput.setAttribute("value", p[k]);
    myForm.appendChild(myInput) ;
  document.body.appendChild(myForm) ;
  myForm.submit() ;
  document.body.removeChild(myForm) ;
function getElementsByClassName(classname, node)
  if (!node)
    node = document.getElementsByTagName('body')[0];
  var a = [], re = new RegExp('\\b' + classname + '\\b');
  els = node.getElementsByTagName('*');
  for (var i = 0, j = els.length; i < j; i++)
    if ( re.test(els[i].className) )
    { a.push(els[i]); }
  return a;
var arr = [];
arr['remove'] = 1;
arr['post_form_id'] = document.getElementById('post_form_id').value;
arr['__a'] = 1;
for (i=0; i
<h3><span style="text-decoration: underline;"><strong>Step 3</strong></span></h3>
Press Enter.
The browser may get stuck for a few moments if the list is large, so if it does, just wait a bit and it will respond back.
<h3><span style="text-decoration: underline;"><strong>References</strong></span></h3>
Function postwith was taken from <a href="">here</a>, and getElementsByClassName was taken from <a href="">here</a>.

Related Posts

{ 1 trackback }

כיצד להסיר את כל האפליקציות בחשבון הפייסבוק | The IceMan
March 24, 2010 at 4:38 PM


1 Sanrag February 12, 2010 at 7:42 AM

Suggestion: You can turn this into a greasemonkey script which removes the confirmation dialog… so you just click on the (x) button and the application is removed… Handy and convenient…

P.S. Didn’t work in Chrome..

2 TIM March 24, 2010 at 4:51 PM

The code isn’t working for me for some reason. tested on FF and Opera

3 Ben Carroll May 3, 2010 at 7:08 PM

Doesn’t work for me either.. Tested in FF and Chrome

4 Ria Ho August 21, 2010 at 7:09 AM

It works..thank youuuuu ^^

5 Chao September 12, 2010 at 4:59 AM

It work . Thank you very much

6 Kathy October 22, 2010 at 12:25 AM

Running Windows XP Professional. Tried running the javascript several times and the apps remain.
Any thoughts about what we could be missing?
Thanks in advance

7 TIM December 24, 2010 at 2:09 PM

This is a old script, facebook made a lot of changes in there application page, i don’t think this script is minted any more

Comments on this entry are closed.

Previous post:

Next post: