Skip to content

Instantly share code, notes, and snippets.

@synchrone
Created July 6, 2014 15:12
Show Gist options
  • Save synchrone/ec217275db23bef775fe to your computer and use it in GitHub Desktop.
Save synchrone/ec217275db23bef775fe to your computer and use it in GitHub Desktop.
Kill the wall
// Use with http://vk.com/dev/execute
var owner = ; //your id or public id * -1
var items = API.wall.get({owner_id: owner, count: 100}).items;
var c = 0;
while(c < items.length){
API.wall.delete({owner_id: owner, post_id: items[c].id});
c = c + 1;
}
return items.length;
@synchrone
Copy link
Author

Execute until retval = 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment