Facebook API to clean Wall

Ok, I wanna know if this is theoretically possible with facebook API:

  • Scrape feed posts on someones wall older than x day
  • Delete all of these feeds or at least change their privacy setting so noone can see

The reason why I ask is because I would like to code a script that would clean up my facebook wall.