To delete a specific number of photos, change the value of maxImageCount as provided in the example. Note: The script allows you to delete all photos or any number of photos.
Therefore, make sure that you only run the code that you understand.Ĭopy all the code in the file delete_photos.js and paste it in the console. If you run code in this console that's malicious, you could be hacked. You will see a warning from Google to stay cautious. Note: This console lets you run custom code, like this tool! You can learn about it on Google Console page. Right click on an empty area with your mouse and select Inspect (last option)Ĭlick on the menu button on Google Chrome (By default, the button is present on the top right corner of the window).Īfter opening the developer tools, click on the Console tab. Press the three keys together in the sequence - CTRL + SHIFT + I You can do so by following either of the three options Note: If you're logged into Google, you will see your images.ĭisable image loading for Google Photos on your browser to avoid high cpu,ram and network usageĬlick on the site padlock ( the lock icon along the url bar) -> Site settingsīlock images in the Permissions for the website If you're using a different browser, the steps still remain the same, however, the keyboard shortcuts or browser specific keywords may not be same for you, as described below.
The manual steps assume that these steps are performed on the Google Chrome Browser. Use the english language version of Google Photos. However, you can still use it with any modern browser, like, Firefox or IE Edge.
You can download the latest version of the Google Chrome browser here. This script has not been tested with any browser other than Google Chrome Version. PrerequisitesĪ fairly recent version of a modern web browser. You can visually see the process while it happens! Getting Startedįollow the step-by-step instructions below to run the tool. This script goes through all your photos in Google Photos app on the desktop and deletes them. After you're done with all that, you should be able to put the SD card into your phone and access all your pictures normally without google taking them hostage.If you have ever wanted to delete your thousands of photos from the Google Photos but failed to find an easy way to do so, then this is the tool for you.
Then go into your phone settings and remove app permissions and disable the app if you can't uninstall it and don't wish to use it anymore. Once you've deleted all of the pictures, go back to your phone and change your google settings so that google photos doesn't automatically upload pictures to the cloud. This will select all of the images or videos that are on your screen and you can delete them all at once. It's a slow and tedious process, but you can delete photos in large numbers if you zoom out, hold shift while clicking on the first image, and hold shift while clicking the last image on your screen. You can delete all the pictures from there.
Next, log onto google photos from your computer. Once you've done this, double check the gallery app to make sure that there are no pictures or videos left on your phone. You need to move all of the pictures and videos on your phone onto the SD card, and remove it from your device. Thankfully I was already using one and already had the majority of my pictures stored on it. You need to buy an SD card large enough to fit all of the photos you have stored on your phone. Google photos is installed on my phone by default so it automatically began uploading my photos to the cloud once I signed in to my g-mail, and I have a lot of photos so I was running out of space and it said I might not be able to send or receive e-mails anymore. Hey, I'm not sure if this has already been resolved but I've found a way to do it.