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
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:
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
Step 2: Hold Shift button simultaneously drag the mouse down to last photoand Click on the last photo.
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