• 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
Home Tips

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

AnonyViet by AnonyViet
February 4, 2023
in Tips
0
0
SHARES
Share on FacebookShare on Twitter

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

5 steps to fix 100% Full Disk error on Windows 8/8.1/10
Tips

5 steps to fix 100% Full Disk error on Windows 8/8.1/10

March 22, 2023
Bing AI – Microsoft’s smart search engine
Tips

Bing AI – Microsoft’s smart search engine

March 22, 2023
[Facebook] Summary of how to RIP FB (Nth part)
Tips

[Facebook] Summary of how to RIP FB (Nth part)

March 20, 2023
How to create a Web App Chatbot that writes code automatically in Python
Tips

How to create a Web App Chatbot that writes code automatically in Python

March 20, 2023
Turn off Facebook’s Autoplay video to save 3G
Tips

Turn off Facebook’s Autoplay video to save 3G

March 19, 2023
Instructions to create Email by domain name for free
Tips

Instructions to create Email by domain name for free

March 18, 2023
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

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent News

5 steps to fix 100% Full Disk error on Windows 8/8.1/10

5 steps to fix 100% Full Disk error on Windows 8/8.1/10

March 22, 2023
TOP latest Vivo phones with enough price segments to buy

TOP latest Vivo phones with enough price segments to buy

March 22, 2023
On hand OPPO Find N2 Flip: Is the folding screen good?

On hand OPPO Find N2 Flip: Is the folding screen good?

March 22, 2023
Xiaomi Redmi Note 12 |  How much does Pro 5G cost, which phone to buy?

Xiaomi Redmi Note 12 | How much does Pro 5G cost, which phone to buy?

March 22, 2023
5 steps to fix 100% Full Disk error on Windows 8/8.1/10

5 steps to fix 100% Full Disk error on Windows 8/8.1/10

March 22, 2023
TOP latest Vivo phones with enough price segments to buy

TOP latest Vivo phones with enough price segments to buy

March 22, 2023
On hand OPPO Find N2 Flip: Is the folding screen good?

On hand OPPO Find N2 Flip: Is the folding screen good?

March 22, 2023
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

5 steps to fix 100% Full Disk error on Windows 8/8.1/10

5 steps to fix 100% Full Disk error on Windows 8/8.1/10

March 22, 2023
TOP latest Vivo phones with enough price segments to buy

TOP latest Vivo phones with enough price segments to buy

March 22, 2023
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.