• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to delete all Images, Videos in Google Photos in seconds

AnonyViet by AnonyViet
February 4, 2023
in Tips
0

Google Photos is Google’s online photo storage service. With a Google account (gmail) you can store 15GB of high quality or unlimited photos compressed by Google. After Yahoo’s Flick incident, now Google Photos is the world’s top favorite. On the one hand, sharing an account with Gmail, Google Drive, on the other hand, it’s free.

Join the channel Telegram belong to AnonyViet 👉 Link 👈

If one day, you want to delete all images and videos in order to free space, what to do? Google Photos only allows deleting photos, not selecting all. Instead of having to click each image to delete, you can use Code to delete photos in bulk.

How to delete all Images, Videos in Google Photos in seconds

Method 1: Use Code to delete photos in bulk in Google Photos

Google Photos is now available on both PC and Mobile. If you are a photography fan, you can choose Google Photos to store photos instead of phone memory. This will save you a lot of space on your phone. However, to sync unrelated images to this Cloud will create a lot of junk images. If you want delete all photos, videos on Google Photos then you can do the following:

Step 1: Access Google Photos website with your Google account.

Step 2: Open DevTools by 1 of 3 ways

  • Press the F12 or c . key
  • right click on the web select Check (Inspect)
  • Press the key combination CTRL + SHIFT + I

Step 3: Select the Console tab and paste the code below and then press Enter

Code shared by gdrive.vip

// Nhấn nút chọn hình ảnh, video và xóa
const ELEMENT_SELECTORS = {
    checkboxClass: '.ckGgle',
    deleteButton: 'button[title="Xóa"]',
    confirmationButton: '#yDmH0d > div.llhEMd.iWO5td > div > div.g3VIld.V639qd.bvQPzd.oEOLpc.Up8vH.J9Nfi.A9Uzve.iWO5td > div.XfpsVe.J9fJmf > button.VfPpkd-LgbsSe.VfPpkd-LgbsSe-OWXEXe-k8QpJ.nCP5yc.kHssdc.HvOprf'
}
// Tự động xóa toàn bộ hình ảnh, video trong bởi https://gdrive.vip/
// Cấu hình thời gian (milliseconds)
const TIME_CONFIG = {
    delete_cycle: 7000,
    press_button_delay: 2000
};

let imageCount = 0;

let checkboxes;
let buttons = {
    deleteButton: null,
    confirmationButton: null
}

let deleteTask = setInterval(() => {

    checkboxes = document.querySelectorAll(ELEMENT_SELECTORS['checkboxClass']);

    if (checkboxes.length <= 0) {
        console.log("[THÔNG TIN] Không còn hình ảnh (video) để xóa.");
        clearInterval(deleteTask);
        console.log("[THÀNH CÔNG] Đã thoát.");
        return;
    }

    imageCount += checkboxes.length;

    checkboxes.forEach((checkbox) => { checkbox.click() });
    console.log("[THÔNG TIN] Đang xóa...", checkboxes.length, "hình ảnh (video)");

    setTimeout(() => {

        buttons.deleteButton = document.querySelector(ELEMENT_SELECTORS['deleteButton']);
        buttons.deleteButton.click();

        setTimeout(() => {
            buttons.confirmation_button = document.querySelector(ELEMENT_SELECTORS['confirmationButton']);
            buttons.confirmation_button.click();
        }, TIME_CONFIG['press_button_delay']);
    }, TIME_CONFIG['press_button_delay']);
}, TIME_CONFIG['delete_cycle']);

or

Download Code at Github

code delete all Images, Videos in Google Photos

Step 4: Wait a few seconds for the Code to work. You don’t just leave the mouse and keyboard alone, don’t do anything. Code will automatically select photos and videos to delete for you. When successful, you will see the message below:

delete google photos images

Deletion time is measured in milliseconds. If you experience slow loading or the image is not deleted, please increase the number by 2 lines:

  • delete_cycle: 7000
  • press_button_delay: 2000

So Code will automatically delete all images and videos in your Google Photos. Please consider when using!

Method 2: Use Shift key to select all photos

This is quite simple if you have few photos saved on Google Photos. Just use the mouse and Shift key to select all photos to delete.

Step 1: Click on the first photo

Use Shift to select all photos to delete in Google Photos

Step 2: Hold Shift button simultaneously drag the mouse down to last photoand Click on the last photo.

select all images to delete in Google Photos

Step 3: Now all images and videos have been checked. You just need to select Trash icon to delete.

Note

Photos, videos after being deleted are still in trash can. You access the link https://photos.google.com/trash select Empty the trash to free up space.

  • How to delete all photos, videos in google photo
  • Quick Remove all video photo in Google Photos

The article achieved: 5/5 – (100 votes)

Tags: deleteGoogleimagesphotossecondsvideos
Previous Post

AOMEI – Safe disk partitioning software without data loss

Next Post

3 great tips to use Chrome DevTools for people who don’t know Code

AnonyViet

AnonyViet

Related Posts

How to record reaction videos with Android phones, no app needed
Tips

How to record reaction videos with Android phones, no app needed

June 1, 2026
Instructions on how to get Google AI Pro 1 year for free for new accounts
Tips

Instructions on how to get Google AI Pro 1 year for free for new accounts

June 1, 2026
Top free AI tools to help write, test and optimize content
Tips

Top free AI tools to help write, test and optimize content

June 1, 2026
Instructions for receiving Lovable Pro 12 months for free
Tips

Instructions for receiving Lovable Pro 12 months for free

May 29, 2026
Instructions for receiving 1 month of ElevenLabs Creator for free worth
Tips

Instructions for receiving 1 month of ElevenLabs Creator for free worth $22

May 25, 2026
How to create beautiful studio-like preschool graduation photos for your child
Tips

How to create beautiful studio-like preschool graduation photos for your child

May 21, 2026
Next Post
3 great tips to use Chrome DevTools for people who don’t know Code

3 great tips to use Chrome DevTools for people who don't know Code

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to check network speed on Apple TV when the image is jerky or lagging

How to check network speed on Apple TV when the image is jerky or lagging

June 3, 2026
Instructions on how to prevent acquaintances from seeing your Tiktok

Instructions on how to prevent acquaintances from seeing your Tiktok

June 2, 2026
How to record reaction videos with Android phones, no app needed

How to record reaction videos with Android phones, no app needed

June 1, 2026
Instructions on how to get Google AI Pro 1 year for free for new accounts

Instructions on how to get Google AI Pro 1 year for free for new accounts

June 1, 2026
How to check network speed on Apple TV when the image is jerky or lagging

How to check network speed on Apple TV when the image is jerky or lagging

June 3, 2026
Instructions on how to prevent acquaintances from seeing your Tiktok

Instructions on how to prevent acquaintances from seeing your Tiktok

June 2, 2026
How to record reaction videos with Android phones, no app needed

How to record reaction videos with Android phones, no app needed

June 1, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to check network speed on Apple TV when the image is jerky or lagging

How to check network speed on Apple TV when the image is jerky or lagging

June 3, 2026
Instructions on how to prevent acquaintances from seeing your Tiktok

Instructions on how to prevent acquaintances from seeing your Tiktok

June 2, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply