google-photos-delete-tool
google-photos-delete-tool copied to clipboard
Added album deletion script
Thanks for your script, it was helpfull. I just modified it to make album deletion possible.
Thanks a lot, this worked great for me, except I had to double the delete cycle time (on a pretty fast machine and ISP, so I imagine most people would need it longer too)
You're welcome !
Hi, thanks for the script, it is really helpful as I have about 120.000 photos uploaded to Google and I want to delete them all. My question to you, is it possible to modify the script so that I can increase the selection of photos per each step? Right now the script selects about 15-30 images at once and it would take quite some time for all of them to be deleted. Thanks!
Hi @nevrozel, the script doesn't limit the amount of images it selects by default. It attempts to select all the images that are loaded in the DOM at the given moment.
It is possible to increase the amount of images selected by having an automatic scroll but that could
- Cause the script to fail on certain devices.
- Increase the complexity of the logic.
If there is a greater demand for the feature, it could certainly be introduced.
Hello, I have 10000 albums generated by the API by mistake. Any chance to use this to delete them? Please help on how to use, thank you!
Hello, I have 50,000 albums mistakenly created by rclone sync. This code is really really helpful. I'm deleting my stupid albums in safari browser of both my macbook and iPhone. Of course it's not possible to use both at the same time. For your reference, simply, I could create ios shortcut(Run javascript...) with this code and I can remove them even while I'm driving.
Right now the script selects about 15-30 images at once and it would take quite some time for all of them to be deleted. Thanks!
I didn't modify the code though but with this wizard, I was able to select over 400 images at once: by zooming out 25% (the minimum zooming rate on Chrome or you can force zoom rate in the console by
document.body.style.zoom = 0.1
This may give Google Photos enough time to preload the remaining albums. Otherwise, you might experience log like No more albums to delete. Tool exited.
and you wait a bit and refresh the site, you then again have the "new" albums.
Hello, I have 50,000 albums mistakenly created by rclone sync.
Same. Do you know why the Rclone sync made that many albums by any chance? I experienced the same issue and I had no idea what mistakes I made in particular though.
@jsncrdnl Could you make the changes requested?
Everyone, please see the updated documentation: https://github.com/mrishab/google-photos-delete-tool/pull/18/files
This change can help speed up the image loading.
Hi, I thanks for sharing a great piece of code. I have used the delete tool successfully on Chrome approx. 9 months ago but when I tried to use it today I have a problem. Using Chrome Version 87.0.4280.141 when the procedure comes to pressing confirmation delete button the photos are not deleted and then the procedure loops forever as nothing has been deleted. Any ideas?
Regards Sam Clarke
Right now the script selects about 15-30 images at once and it would take quite some time for all of them to be deleted. Thanks!
I didn't modify the code though but with this wizard, I was able to select over 400 images at once: by zooming out 25% (the minimum zooming rate on Chrome or you can force zoom rate in the console by
document.body.style.zoom = 0.1
This may give Google Photos enough time to preload the remaining albums. Otherwise, you might experience log like
No more albums to delete. Tool exited.
and you wait a bit and refresh the site, you then again have the "new" albums.
![]()
That's a great suggestion!!
@sarkrui , can you make a PR with this change so that it automatically does it before deleting?
Closed. As the solution is to decrease the zoom on the brower.