360 Secure SkillHub
360 安全技能中心

Google Drive Delete File

该 Skill 定义了一个原子节点:当需要移除 Google Drive 中的文件时,执行 gog drive delete <fileId>,把文件移入回收站,并返回是否删除成功的文本确认。依赖 gog CLI 与 Google Drive 服务,未声明批量删除、恢复、权限校验或搜索能力。

zvirb
zvirb
热度 44.14
最近更新 2026-05-11 17:46:05
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add google-drive-delete-file
Metadata
name
Google Drive Delete File
description
Atomic node skill to delete a file in Google Drive using the gog CLI.
os
all
requires
{"bins":["gog"]}

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, broken down into its simplest, smallest component to eliminate waste and ensure perfection.
  • Standardized Work (Hyojun Sagyo): This node represents the most efficient, standardized path for this specific task before automation.
  • Jidoka (自働化): This node includes autonomous defect detection. It relies on the CLI's self-healing loop and will report errors if the deletion fails.

Google Drive Delete File

This skill allows the agent to move a file to trash in Google Drive using the native CLI.

Cognitive Directives

WHEN [A file needs to be removed or moved to trash in Google Drive] THEN [Execute the native terminal command gog drive delete <fileId>]

Schema Example

{
  "command": "gog drive delete file_id_123"
}

Expected Output

Confirmation that the file was moved to the trash.