• 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

4 ways to fix bluetooth connectivity on Windows 11
Tips

4 ways to fix bluetooth connectivity on Windows 11

August 8, 2025
How to know the computer is tracked and processed by Keylogger
Tips

How to know the computer is tracked and processed by Keylogger

August 7, 2025
Opal: Create applications who do not need to write code
Tips

Opal: Create applications who do not need to write code

August 3, 2025
How to activate a new Start menu on Windows 11
Tips

How to activate a new Start menu on Windows 11

July 29, 2025
Intellgpt: AI tool for osint and data science
Tips

Intellgpt: AI tool for osint and data science

July 28, 2025
How to create Google Ai Pro 12 months free with Indian student account
Tips

How to create Google Ai Pro 12 months free with Indian student account

July 27, 2025
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

Instructions for receiving 80GB of free data from VinaPhone from August 15

Instructions for receiving 80GB of free data from VinaPhone from August 15

August 15, 2025
Online driving exam preparation: Support theory and practice

Online driving exam preparation: Support theory and practice

August 15, 2025
How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
Wowhay.com – The door opens the world of modern knowledge and network culture

Wowhay.com – The door opens the world of modern knowledge and network culture

August 13, 2025
Instructions for receiving 80GB of free data from VinaPhone from August 15

Instructions for receiving 80GB of free data from VinaPhone from August 15

August 15, 2025
Online driving exam preparation: Support theory and practice

Online driving exam preparation: Support theory and practice

August 15, 2025
How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
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

Instructions for receiving 80GB of free data from VinaPhone from August 15

Instructions for receiving 80GB of free data from VinaPhone from August 15

August 15, 2025
Online driving exam preparation: Support theory and practice

Online driving exam preparation: Support theory and practice

August 15, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

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

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

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