How to remove all photos(more than 10,000) in Amazon Photos easily

Amazon Photos is a photo storage app like Google Photos. Especially if you're an Amazon Prime member, you'll be able to save your photos with unlimited space. I had over 10,000 photos in Amazon Photos. As long as I lived in Tokyo, I was sure that I was going to be with them for a long time, so I never thought of quitting Amazon Prime member. However, I went overseas. I realized an Amazon Prime member in Japan makes little sense. So I decided to remove all photos. But if I erased all of them, this task would have been a simple repetition of the tendonitis and insanity levels. So here I'll note how you can easily delete them.

amazon photos

Amazon Photos is awesom

Amazon Photos is a convenient service that is a part of an all-in-one package that includes services such as Prime Video and Prime Music.

  1. Unlimited capacity. While smartphone storage is getting cheaper, it's still expensive. Thank goodness. You can take as many photos as you want.
  2. You can access it from anywhere as long as your account is connected.
  3. Easy to share with my family.

I decided to use Amazon Photos because it would be a backup to Google Photos and there would be no reason to quit Amazon Prime Membership in Tokyo. Google As you know, it will be cut off unnecessary services for them and I'm sure many of you drank tears at the treatment. And surprisingly they sometimes make amazing mistakes. In that regard, Amazon has developed a great deal of experience in running AWS (Amazon Web Services). The company is at the level of understanding the needs of the enterprise. And I think that's at the Microsoft level.

However, I wasn't going to be in Japan forever. Once you leave Japan, Amazon Prime Membership became almost useless. I could only watch Amazon originals on Prime Video. By the way, Mrs. Marvelous Maisel, this is the best. I don't care if I have to pay for the new season! There is no point in delivery either. The only thing that works is Prime Music. So I decided to cancel my convenient Amazon Prime.

Then I suddenly realized the existance of Amazon Photos. I had forgotten about it because I was only using it for backups. When I checked, it was at a level where if I canceled it, I would have to pay for it.

But Amazon is very kind. They won't be so ruthless as to immediately wipe you out if you exceed your capacity. Of course some features, such as additional uploads, will be limited. You can use the service successfully if you resolve the issue by deleting exceeded photos or charging for it. And after 2 years, the service will be deleted automatically. It's nice for us to clearly state in the Terms of Use.

Amazon Photos Terms of Use

Yes! You don't have to bother turning it off, you can just leave it there and not be charged for it (I can't guarantee that's really the case). And after two years, they'll turn it off properly. That's very awesome, Amazon!

But I decided to remove all photos by myself.

Nothing is more expensive than free. As long as it's in storage, Amazon will access it as needed. It's for the customer! But even though I decided to quit, I personally felt uncomfortable with that situation.

The number of photos is over 10,000

It was more than I thought...

In order to turn them off, you need to do the following

  1. Move photos in the trash。

    • Selection can be made by date.
  2. Select and delete photos in the trash.

    • Please select 1 by 1 with all my heart.

I believe this is a kindness from Amazon. You can't just erase your precious photos that easily and completely! Maybe you're getting worked up that day!

But I had Google behind me. A backup exists there. And there is less than a day to go until the day it is cancelled.

The only way left for me is to delete it now!

Remembering the good old days.

It's surprisingly fun to choose a photo for each of dates. I chose the photos as I remember the good old days and all the things that happened on those days. I thought about how young I was then, and how such and such things happened.

But I found that there were so many photos of that day with so many memories, but I could select them all with a single click.

On the other hand, I have a lot of pictures of landscapes and lunches that I didn't remember and don't know what was interesting about them. I had to click 1 by 1 for the lazy photos. The weight of one click is different. One-click disparity.

We will happily select them and move them into the trash, about 5,000 at a time. This gave me a personal sense of accomplishment.

But hell was after this.

When I go to the trash can page, there is no way to select more than one... There were no UI that cleans out all in the trash can like the Gmail. I really just had to choose one by one, sincerely and with a strong heart.

Ten pieces, I tried my best.

It's hard. My heart was still strong.

Ten more pieces, I tried to do my best.

It was hard too. Then my heart was broken.

I made up my mind. I decided to make my program.

A program that selects all the photos in the Amazon Photos trash bin at once

The requirement is simple. It is to select all the photos in the trash can at once or in one easy batch.

I looked at the developer console and found that it's doing some interesting things. Every time I scrolled, it took the next 30 pictures, but there were only new 30 pictures in the document object. You could see all photos that were already loaded. So I could only get each new 30 images.

As a result,

  1. select 30 images in HTML at once by Javascript.
  2. move the mouse wheel to the next position by yourself.
    • Thankfully, you don't take care of the wheel controls so much. It works appropriately whether you go too far or not.
  3. repeat the above until 5,000 items are selected.
    • When the number of selections is about to exceed 5,000, clear the timer.
  4. check the selected photos briefly to make sure it is the right one, and delete it.
  5. Repeat this process until the trash box is empty.

You can run the program on the developer console.

It's completely at your own risk.

// Function to select the newly displayed photo one by one with a heart.
function select() {
  var nodesSnapshot = document.evaluate(
    `//div[@class='selector full-selection']`,
    document,
    null,
    XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
    null
  );
  for (var j = 0; j < nodesSnapshot.snapshotLength; j++) {
    const elem = nodesSnapshot.snapshotItem(j);
    elem.click();
  }
}

//  Repeat every 3 seconds, until you get to the next picture.
var timerId = setInterval(select, 3000);
// Make a copy in advance; run it when it's close to 5,000.
clearInterval(timerId);

Now that everything has been successfully removed, my mind was clearer. Thank you so much for everything, Amazon! When I get back to Japan some day, I'll join the membership again!

Updated at: Fri Jul 10 2020

© 2020-presentTerms|Privacy