Press "Enter" to skip to content

How to remove all your images at once from lightshot’s gallery (prntscr.com)

(2 -minute read)

I’ve used Lightshot‘s free screen capture tools for years now.

It helps me interact better with my team members and allows me to manage 4 remote companies effectively.

After testing a few of these tools, I believe this one is my favorite.

In this post, I will not show you how I use this tool, but simply how to remove all your images at once from Lightshot’s screenshot history page (My Gallery).

Step 1

Open your Chrome browser and refer to the Console tab in the Developer Tools.

You can go to the Developer Tools by clicking Ctrl + Shift + I or F12.

Step 2

Log into your Lightshot account and open your gallery.

Step 3

Paste the following JavaScript code in the console box

And press Enter.

Note: this script is 100% safe and only do the following actions:

  • Every 2 second
    • Delete 5 images that aren’t deleted yet
    • Press on “Delete Forever” for the 5 deleted images
  • Repeat.

Step 4

Watch the script do the heavy lifting for you.  Sit back, relax, and enjoy.

Video Tutorial

This tutorial is also available on YouTube with a live presentation I make performing all the steps I wrote above.

Leave a Reply

4 Responses to "How to remove all your images at once from lightshot’s gallery (prntscr.com)"

  1. Viktor Viktor December 29, 2017

    I would suggest clearing the interval after they are all removed, otherwise it will keep being executed.

    • Eliran Mukdasi Eliran Mukdasi December 30, 2017

      Thanks for the tip! Can you please share an update to the code snippet the way you envision it?

  2. Viktor Viktor January 8, 2018

    var intervalHandle = setInterval(function() {
    var i = 0;
    $(‘.js-delete’).each(function() {
    if (i > 5) {
    return false;
    }
    $(this).click();
    if ($(this).parent().css(‘display’) == ‘block’) {
    i++;
    }

    });
    // Confirm delete forever
    $(‘.js-delete-forever’).each(function() {
    if ($(this).parent().css(‘display’) == ‘block’) {
    $(this).click();
    }
    });
    if ($(‘.js-delete’).lengh == 0) {
    clearInterval(intervalHandle);
    }
    }, 2000);

    • Eliran Mukdasi Eliran Mukdasi January 27, 2018

      Haven’t worked for me, have you tested it on your end successfully?