360 Secure SkillHub
360 安全技能中心

Rm Tool

提供 rm-tool 命令行封装,用于永久删除文件与目录,支持递归删除、强制删除、交互式确认和详细输出,由 scripts/rm.py 配合 rm 命令实现。属于破坏性操作,材料未说明回收站、恢复或额外安全确认机制。

dinghaibin
dinghaibin
热度 30.15
最近更新 2026-05-18 11:49:22
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add rm-tool
Metadata
name
rm-tool
description
Remove files and directories permanently. Use for file deletion, cleanup, and disk space management.

RM - File Removal Utility

Delete files and directories from the filesystem. Supports recursive directory removal, interactive confirmation, and force deletion.

Usage

rm-tool [options] <target...>

Options

  • -r: Recursively remove directories
  • -f: Force removal (ignore nonexistent files)
  • -i: Interactive (prompt before each removal)
  • -v: Verbose (show what is being removed)

Examples

rm-tool file.txt
rm-tool -rf temp_directory/
rm-tool -i *.log