Remove all entries from the group. How to delete all posts on the VKontakte wall? Two simple instructions

Many on their websites and in YouTube videos offer different methods, but for some reason they do not work. Someone offers a script, and someone offers a plugin, but it's all useless. And so I finally found a normal code with which you can really delete all posts from your wall.

The method is as follows: you need to open the developer panel in the browser and paste special code into the console. Now I will tell you in more detail how this is done.

I tested the code in Google Chrome and Mozilla. Through Mozilla, as it seemed to me, posts are deleted even faster than in Crome.

Deleting all posts from the VKontakte wall

Go to your VKontakte page, and then scroll down as far as possible. While scrolling, old posts will be constantly loaded.

After a while, press the "Ctrl" + "Shift" + "I" keys at the same time to open the developer panel.

Then, in this window, in the browser, you need to click on the "Console" tab.

Copy the code below and paste it into this window by pressing "Ctrl" + "V".

Code for cleaning the VKontakte wall from records

(function () ( "use strict"; if (!confirm("Delete all posts from the wall?")) return; var deletePostLink = document.body.querySelectorAll("a.ui_actions_menu_item"); for (var i = 0; i< deletePostLink.length; i++) { deletePostLink[i].click(); } alert(deletePostLink.length + " posts deleted"); }());

(function () ( "use strict" ; if (! confirm ( "Delete all posts from the wall?") ) return ; var deletePostLink = document . body . querySelectorAll( "a.ui_actions_menu_item") ; for (var i = 0 ; i< deletePostLink . length ; i ++ ) { deletePostLink [ i ] . click () ; } alert (deletePostLink . length + " posts deleted" ) ; } () ) ;

A warning will appear in the Mozilla browser that inserting various unknown codes is dangerous, and to confirm, you must enter something like “I allow insertion” in the line.

You have to wait for some time until a window appears informing you that so many posts have been deleted.

I have zero posts in the screenshot, because there is nothing more to delete. That's basically all you need to do.

If you have a lot of posts, then at one time they are unlikely to be deleted. In this case, you need to repeat all the steps performed, and delete some more of the records.

I managed to delete all entries, probably only for the sixth time, and the last entry that I deleted was posted on January 7, 2012 🙂

Watch another video on how to delete all posts from the VKontakte wall

You will need a computer with a browser and a small piece of code, which is provided in the article. The cleanup time will depend on the total number of entries.

At one time, you will be able to delete only those posts that the system will display on the wall. So it's important to get to the bottom.

It may take time to scroll the page, but in any case, everything will go much faster than deleting manually. To speed up the process, hold down the spacebar or End.

If you're on Chrome, press Ctrl + Shift + J (Windows) or Cmd + Opt + J (macOS). In Firefox, the combinations Ctrl + Shift + K (Windows) and Cmd + Opt + K (macOS) are provided for this. If you are using a different browser, you can easily find the keys to launch its console using Google.

4. Copy this script, paste it into the console and press Enter

(function () ( "use strict"; if (!confirm("Delete all posts from the wall?")) return; var deletePostLink = document.body.querySelectorAll("a.ui_actions_menu_item"); for (var i = 0; i< deletePostLink.length; i++) { deletePostLink[i].click(); } alert(deletePostLink.length + " posts deleted"); }());

5. When the browser displays a dialog box, confirm the deletion

After that, the script will erase all visible publications from the wall "". The more of them, the longer the cleaning will last.

If after that old posts appear on the wall, to which you simply did not scroll the page, they can be deleted in the same way.

A lot of very different information is reflected on the user's wall on VKontakte. For example, photos, news posted by the user, reposts, etc. are displayed here. Over time, a huge number of records can accumulate on the wall. Users are wondering - how to remove them?

We answer - each entry is deleted separately. Actually, this is even written in the VK help:

Perhaps, in addition to intruders, this is also due to the fact that users often delete too many records, including the necessary ones, after which they try to restore them, and this is no longer possible if the page has been reloaded.

Example. There is a note on the wall.

In order to delete it, you need to move the mouse cursor over the entry. A cross will appear, clicking on which the entry will be deleted.

However, you can restore it if you do not reload the page.

And this would be the end of our article, if not for ...

Deleting all entries

The solution, no matter how surprising it may sound, was found on VKontakte itself! This is a script that must be inserted into the address bar of the browser.

The script itself:

[email protected]:var h = document.getElementsByClassName("post_actions");var i = 0;function del_wall()(var fn_str = h[i].getElementsByTagName("div").onclick.toString();var fn_arr_1 = fn_str.split ("(");var fn_arr_2 = fn_arr_1.split(";");eval(fn_arr_2);if(i == h.length)(clearInterval(int_id))else(i++));var int_id=setInterval(del_wall .500);

It's easy to use. First, open your page in VK, then copy the script, paste it into the browser line, ALWAYS remove the sign from the script @ after the word java (you need to do this in the browser line), and then press the Enter key on the keyboard. Now you can see how the records are being deleted.

After the process, if you do not want to restore the records, you need to reload the page - press F5 on the keyboard.

At the time of this writing, the script works in all browsers, including Google Chrome, Mozilla Firefox, Opera.

The main thing to remember is that the site administration is not responsible for the script, and even more so for deleting records, so use it only at your own peril and risk.

Answers on questions

  • Why is the script not working?

You are probably doing something wrong, the script is working.

  • Why does the search engine open when you copy the script to the browser line and press the Enter key?

Most likely, you copied the code with an extra space or sign. This cannot be done.

  • Why are not all records deleted?

This is due to the fact that only entries in the "visibility range" are deleted. In other words, you need to open all the entries that you want to delete. To do this, simply scroll down the page.

  • Can the script be stopped?

To do this, you need to reload your page.

  • Will the script always run?

With this question, it is better to seek help from VKontakte specialists.

  • Does the script work in the mobile app?

We did not check, but, according to the information found on the network, the script works in the mobile version of VK, which opens in the browser.

Have you decided to get rid of all the posts on your Vkontakte wall? You can do this with standard tools, but if the number of records exceeds a hundred, then it will take a lot of time to delete records one at a time. Is it possible to somehow do everything at once, in one fell swoop? There are two ways that we will consider right now.

Method 1: Using a script

Go to your Vk page and scroll down to get to the earliest posts on the wall. Click the shortcut to launch the browser console:

  • In Chrome: Ctrl + Shift + J (Windows) or Cmd + Opt + J (macOS)
  • In Firefox: Ctrl + Shift + K (Windows) and Cmd + Opt + K (macOS)

Now copy this code to the console and run it by pressing the Enter key

(function () ( "use strict"; if (!confirm("Delete all posts from the wall?")) return; var deletePostLink = document.body.querySelectorAll("a.ui_actions_menu_item"); for (var i = 0; i< deletePostLink.length; i++) { deletePostLink[i].click(); } alert(deletePostLink.length + " posts deleted"); }());

A pop-up window will appear at the top of the browser window asking if you really want to remove all posts from the wall. Click OK.

If there are a lot of publications (hundreds), then manual scrolling of the page can be replaced by automatic one. Run the following script in the console, and it will reach the very first post on your wall, and you will only have to watch its work :)

SetInterval(() => (window.scrollTo(0,document.body.scrollHeight)), 1000)

2. Application CleanerVK

It will help to mass delete not only records, but also audio, video, photos, communities and friends. The application has a high rating among users in the Google Play Market - 4.8 out of 5.

This method, compared with the first, has both advantages and disadvantages. The disadvantage is that in order for the application to access your Vkontakte account, you need to give it a login and password on the social network. However, no one bothers to change the password after the application is running - so this drawback is very conditional.

But the advantages of CleanerVK are undeniable:

  • You can delete all entries from the wall made before / after the specified time or within the specified period
  • You can get rid of only posts with the number of likes less / more than some value in one fell swoop
  • Filter posts by sender
  • Filter posts by content

Outcome

Whatever method you choose, you will get a quick and desired result :) I wish you good luck!

But some time ago, the Vkontakte administration refused such a move, referring to the fact that the attackers, having hacked into the account, would delete all the most important things in this way:

Deleting one entry at a time is also not an option. Too long, especially if you have been running the page for several years:


First way works unstable, since the script slows down on the new design.

1. Log in to your page Vkontakte.

2. Enter the script in browser address bar.

java *** script:var h = document.getElementsByClassName("ui_actions_menu _ui_menu"); var i = 0;function del_wall()(var fn_str = h[i].getElementsByTagName("a").onclick.toString(); var fn_arr_1 = fn_str.split("("); var fn_arr_2 = fn_arr_1.split( ";"); eval(fn_arr_2);if(i == h.length)(clearInterval(int_id))else(i++));var int_id=setInterval(del_wall,500);

3. Delete the asterisks *** and press the Enter key.


Deleting all posts on the Vkontakte wall

Second way works flawlessly in 2019, but you will have to paste the code many times if you have a large number of entries:

1. We scroll through part of our posts on the wall. For a quick effect, hold down a space or end .

2. Click anywhere on the page right mouse button, choose the value "View Code"(in some browsers it is called differently, for example, "Explore element").

(function () ( "use strict"; if (!confirm("Delete all posts from the wall?")) return; var deletePostLink = document.body.querySelectorAll("a.ui_actions_menu_item"); for (var i = 0; i< deletePostLink.length; i++) { deletePostLink[i].click(); } alert(deletePostLink.length + " posts deleted"); }());


4. Confirm deletion and wait until the wall is cleared.


  • Now we scroll down the records, paste the code and delete them;

Answers to frequently asked questions

Question: On the new design of 2018, do the ways work?
Answer:
Yes, they do. But the script sometimes stops deleting records, so I advise you to use the second method.

Question: Can I delete posts in a community?
Answer: Yes, if you are a community admin.

Question: How to stop deletion?
Answer: Refresh the page (press the F5 key).

Question: The search engine opens / page not found when I enter the script and press Enter, what should I do?
Answer: This is because you forgot to remove the asterisks *** at the beginning of the code.

Question: I want to delete the old posts and keep the new ones, what should I do?
Answer: Click on the wall, then in the upper right corner "Search by records", Further "Entries up to a certain date", then select the date where records up to this time will be displayed and paste the script.

Question: Do the methods work in the mobile app?
Answer: Try it, it's not true.

Question: Photos to be deleted?
Answer: Only those that have been posted on your wall.

Question: How to delete all entries from the VK wall in the second way on other browsers if there is no line "View Code"?
Answer: The page code can be viewed on any browser, it's just that each one has a different name. In FireFox, for example, "Explore element".