How to Delete Multiple Instagram Posts in Bulk Automatically?

Learn how to mass delete Instagram posts at once automatically without any app, software, or extensions. You can use this simple script to automate the bulk deletion of posts in your Instagram profile.

If you’re revamping your business, then it’s a good idea to remove all the existing posts and start from scratch. However, Instagram does not support mass delete options. You need to delete the photos one after the other manually only from the mobile app.

Currently, the Instagram mass delete or clean up solutions available are very limited and unsecured. The Instagram mass cleanup third-party apps require you to share your login username and password. These apps are not even listed on Google PlayStore or Apple App Store, hence you can imagine the risk of your account.

I recently published an article and video demo on how to delete the Instagram photos on the computer. Though this option is not available, however using the tip I mentioned you will be able to delete the post from a computer browser.

Based on the same tip, I developed an InstaG Purger script that automatically deletes Instagram photos fast from your account one after the other. This script is safe and does not need your credentials, unlike other solutions.

How to Bulk Remove Instagram Photos?

As I mentioned, the mass delete or bulk removal of Instagram photos is really simple using the script. It only works on the computer and not on mobile phones.

Here are the steps to mass delete Instagram posts at once:

Step 1: Login your Instagram account in the Chrome browser on the computer.

Step 2: Switch to the Profile home page. ex:

Step 3: Right-click for more options and select Inspect.

Chrome Browser Inspect Element option

Step 4: Click on the Toggle device toolbar.

Hire Kushal Azza on restoreBin

Device toolbar Chrome

Step 5Reload the Instagram profile page.

Step 6: Click on the Feed icon to make a switch.

Instagram Feeds icon

Step 7: Switch to the Console tab in the Developer console.

Step 8: Copy and paste the below InstaG Purger script in the Console.

Instagram Purger Script in Developer Console

Step 9: Hit on the Enter button on the keyboard to execute the script and auto-delete the Instagram photos.

Instagram posts delete on computer browser

The script will be executed and the console log will display the number of posts deleted. You can customize the script to set as many as the post you want to delete.

Number of Instagram Photos using script


There are chances that the script might fail after a few days or months due to changes in Instagram UI. However, please let me know if it does, I will be happy to update and fix the script as soon as possible.

Hire Kushal Azza on restoreBin

The InstaG Purger script can mass delete all Instagram posts at once without any software, apps, or any extensions.

InstaG Purger Script

Here is the script that you need to run in the Chrome browser developer console:

// Name: InstaG Purger
// Author: KushalAzza
// Details:

var i = 0;                                                                                              //  set your counter to 0
function instagramDeleter() {                                                                           //  create a deleter loop function
   setTimeout(function () {                                                                             //  call a 3s setTimeout when the loop is called
        document.querySelector('div.Igw0E.rBNOH.YBx95._4EzTm').click();  //  selector to click on options menu
        setTimeout(function () { document.querySelector('button.aOOlW.-Cab_').click(); }, 2000)         //  selector to click delete option
        setTimeout(function () { document.querySelector('button.aOOlW.-Cab_').click(); }, 4000)         //  selector to click delete confirmation
        console.log (i+1 +" Deleted")                                                                   //  delete numbering to console
        i++;                                                                                            //  increment the counter
        if (i < 5) {                                                                                    //  if the counter < 5, call the loop function
            instagramDeleter();                                                                         //  ..  again which will trigger another 
        }                                                                                               //  ..  setTimeout()
    }, 6000)

Modify the highlighted value in green to set the number of Instagram posts to be deleted in one go.

Limitation for InstaG Purger

Though the InstaG Purger script eases your job of bulk or mass deleting the Instagram account. There are some limitations while the script is running. Most importantly, you should leave the tab open and let the script do its work in the background.

  • The script may fail if Instagram revamps the website UI.
  • You may not be able to use Instagram in the same tab while the script is running.
  • The script removes post sequentially from the latest to the oldest order, you may not be able to change the sequence.
  • You will need a fast data connection for Instagram feeds to load quickly.
  • If you refresh or reload the page, the script will stop and you may need to re-execute the script again.
  • The delete post count won’t be refreshed in real-time.

If you’re facing any issue apart from the mentioned, please drop in below comment box.

Video on Mass Delete Instagram Photos

Here is the video demo on mass deleting the Instagram photos from the desktop browsers using InstaG Purger script.

How to Mass Delete Multiple Instagram Posts in Bulk?

I hope you liked the video, please subscribe to our channel on YouTube.

If you've any thoughts on How to Delete Multiple Instagram Posts in Bulk Automatically?, then feel free to drop in below comment box. Also, please subscribe to our restoreBin YouTube channel for amazing videos tips. Cheers!

Hire Kushal Azza on restoreBin
Kushal Azza
Fond of latest technologies and gadgets. I'm a digital dev and analytics consultant. Also, the geek behind this blog!

You may also like

6 Responses

  1. Danie Alatorre says:

    Hi ! I am trying to follow your guide for the mass/bulk delete posts on IG but i get an error

    Uncaught TypeError: Cannot read property ‘click’ of null
    at :4:94

    Can you please help me with this ?


    • Kushal Azza says:

      Hi Daniel, looks like the IG has revamped the website elements. However, I’ve updated the script and tested live. It working now!

      Thank you for the alert.

      Kushal Azza

  2. Xander says:

    Hi awesome tool! It kind of executes the command, however I get a 400 (bad request) error. Please advise 🙂

    Much appreciated!

    • Kushal Azza says:

      Hello Xander, I just ran the script. It running without any issues. Not sure how you are facing the issue.

      Is your network connection fast enough? Also, have you switched to the responsive mode by click on the Device toolbar?

      Please follow the video carefully. //Kushal

  3. Amy Bello says:

    HI Kushal,

    I am trying to follow the guide but getting the error

    Uncaught TypeError: Cannot read property ‘click’ of null
    at :9:78

    Can you please help?


    • Kushal Azza says:

      Hi Amy, I just executed the script and was able to delete a couple of posts without any error.

      Please do check the limitation section in the above post. Make sure that you are following DONT’s.

      Often time when we interrupt the script, we get such error. However, let me know if you still encounter it.

      Cheers! //Kushal

Leave a Reply

Your email address will not be published. Required fields are marked *