Skip to content

jsncrdnl/google-photos-delete-tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Photos Delete All Tool

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. This script goes through all your photos in Google Photos app on the desktop and deletes them. You can visually see the process while it happens!

Getting Started

Follow the step-by-step instructions below to run the tool.

Prerequisites

Assumptions

The manual steps assume that these steps are performed on the Google Chrome Browser. 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.

Steps

  1. Login into your Google Account.

Google Account Sign-in Page

  1. Go to Google Photos.

Google Photos Page

Note: If you're logged into Google, you will see your images.

  1. Open Developer Tools. You can do so by following either of the three options

    • Keyboard Shortcut

      Press the three keys together in the sequence - CTRL + SHIFT + I

    • From the Page

      Right click on an empty area with your mouse and select Inspect (last option)

      Google Chrome Right Click Pop-up Menu

    • From Menu

      1. Click on the menu button Google Chrome Menu Icon on Google Chrome (By default, the button is present on the top right corner of the window).

      2. Select More tools.

      3. Select Developer tools.

      Google Chrome Menu Developer Tools

  2. After opening the developer tools, click on the Console tab. Google Chrome Console on Google Photos page

    Note: _This console lets you run custom code, like this tool! You can learn about it on [Google Console page](https://developers.google.com/web/tools/chrome-devtools/console/)_.
    
    You will see a warning from Google to stay cautious. If you run code in this console that's malicious, you could be hacked. Therefore, make sure that you only run the code that you understand.
    
  3. Copy all the code in the called delete_photos.js and paste it in the console. The Code in Chrome Console

  4. Done! Now, you should see the script delete all your photos in the batch

Deleting albums

  1. Follow Step 1

  2. Go to your albums

  3. Follow Steps 3 & 4

  4. Follow Step 5 using delete_albums.js instead of delete_photos.js

  5. Wait for all albums to be deleted

Debugging

The script may not work as expected in case your internet speed is considerably slow. In that case, you may want to increase the DELETE_DELAY_CYCLE by few thousands of milliseconds. This is to ensure that the page has refreshed before the tool tries to delete the images again.

About

Tool for deleting all photos from the Google Photos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%