safe-file-deletion

Require explicit user confirmation before executing file deletion commands.

10.7k|987|Updated Jul 6, 2025
One-click install
npx skills add https://github.com/MemTensor/MemOS --skill safe-file-deletion-memtensor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe-file-deletion
Source: https://github.com/MemTensor/MemOS/tree/main/apps/openwork-memos-integration/apps/desktop/skills/safe-file-deletion
Command: npx skills add https://github.com/MemTensor/MemOS --skill safe-file-deletion-memtensor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental deletion of files by requiring explicit user confirmation before any file removal operation.

Core Features & Use Cases

  • Explicit Permission: Ensures user consent is obtained before deleting any file or directory.
  • Batch Deletion Support: Handles requests for deleting multiple files simultaneously.
  • Use Case: When you intend to delete a critical configuration file or a directory containing important data, this Skill will pause the operation and ask for your explicit go-ahead, preventing irreversible data loss.

Quick Start

Use the safe-file-deletion skill to delete the file at '/home/user/documents/old_report.txt'.

Frequently Asked Questions about safe-file-deletion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent accidental file deletion when running rm commands?

To prevent accidental file deletion, you can use a mechanism that enforces explicit user permission before executing any rm or unlink operations. This requires a confirmation step, pausing the operation to ask for your explicit go-ahead before proceeding with irreversible data removal.

How does a confirmation step protect critical data during batch file removal?

A confirmation step protects critical data during batch file removal by intercepting requests to delete multiple files simultaneously and requiring explicit user consent. This mechanism ensures you review and approve the irreversible data removal operation before any file or directory is actually deleted.

Can I require user permission for directory deletion across different command-line tools?

Yes, you can require user permission for directory deletion across various command-line tools and programming interfaces. The explicit permission mechanism applies to all file removal actions, intercepting single file, multiple file, and directory deletion operations to enforce a confirmation step before execution.

What is the best way to add a safety check to file removal operations?

The best way to add a safety check to file removal operations is to enforce explicit user permission before executing any deletion command. This data protection mechanism requires a confirmation step via a permission request, ensuring irreversible data removal only proceeds after your explicit go-ahead.

Do I need to manually confirm every single file deletion operation?

You need to manually confirm any file deletion operation, including single files, multiple files, and directories. The explicit permission mechanism intercepts all file removal actions across various command-line tools, requiring your explicit go-ahead via a permission request before proceeding with any data removal.