• 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

Instructions for registering for OxionAI Pro for 1 year with many powerful AI models
Tips

Instructions for registering for OxionAI Pro for 1 year with many powerful AI models

October 24, 2026
How are Windows 11 Pro and Windows 10 Pro different?
Tips

How are Windows 11 Pro and Windows 10 Pro different?

October 23, 2026
Instructions for using CleanYourTV: Remove ads on Android TV, Google TV
Tips

Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

October 23, 2026
How to use Messenger without a Facebook account
Tips

How to use Messenger without a Facebook account

October 22, 2026
The website helps you draw beautifully like TikToker Viet My
Tips

The website helps you draw beautifully like TikToker Viet My

October 21, 2026
Instructions on how to hard reset iPhone 18 Pro / iPhone 18 Pro Max
Tips

Instructions on how to hard reset iPhone 18 Pro / iPhone 18 Pro Max

October 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

Recent News

Postpaid for new employees: Should you start using it?

Postpaid for new employees: Should you start using it?

October 26, 2026
How to create a UFO Game that calls students to return their homework

How to create a UFO Game that calls students to return their homework

October 26, 2026
Instructions for registering for OxionAI Pro for 1 year with many powerful AI models

Instructions for registering for OxionAI Pro for 1 year with many powerful AI models

October 24, 2026
How are Windows 11 Pro and Windows 10 Pro different?

How are Windows 11 Pro and Windows 10 Pro different?

October 23, 2026
Postpaid for new employees: Should you start using it?

Postpaid for new employees: Should you start using it?

October 26, 2026
How to create a UFO Game that calls students to return their homework

How to create a UFO Game that calls students to return their homework

October 26, 2026
Instructions for registering for OxionAI Pro for 1 year with many powerful AI models

Instructions for registering for OxionAI Pro for 1 year with many powerful AI models

October 24, 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

Postpaid for new employees: Should you start using it?

Postpaid for new employees: Should you start using it?

October 26, 2026
How to create a UFO Game that calls students to return their homework

How to create a UFO Game that calls students to return their homework

October 26, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

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