recipe-find-large-files

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Find Largest Files in Drive

查找Drive中的最大文件

PREREQUISITE: Load the following skills to execute this recipe:
gws-drive
Identify large Google Drive files consuming storage quota.
[!CAUTION] Deleting files is permanent if the trash is emptied. Confirm before deleting.
前提条件: 加载以下技能以执行此操作:
gws-drive
识别占用存储配额的大体积Google Drive文件。
[!注意] 如果清空回收站,删除文件将是永久性操作。删除前请确认。

Steps

步骤

  1. List files sorted by size:
    gws drive files list --params '{"orderBy": "quotaBytesUsed desc", "pageSize": 20, "fields": "files(id,name,size,mimeType,owners)"}' --format table
  2. Review the output and identify files to delete or move
  3. Delete if needed:
    gws drive files delete --params '{"fileId": "FILE_ID"}'
  1. 按大小排序列出文件:
    gws drive files list --params '{"orderBy": "quotaBytesUsed desc", "pageSize": 20, "fields": "files(id,name,size,mimeType,owners)"}' --format table
  2. 查看输出结果,确定要删除或移动的文件
  3. 如有需要,删除文件:
    gws drive files delete --params '{"fileId": "FILE_ID"}'