safe-file-deletion

Require explicit user confirmation before executing file deletion operations.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/SpandanM110/Accomplish-M110 --skill safe-file-deletion-spandanm110
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe-file-deletion
Source: https://github.com/SpandanM110/Accomplish-M110/tree/main/packages/agent-core/mcp-tools/safe-file-deletion
Command: npx skills add https://github.com/SpandanM110/Accomplish-M110 --skill safe-file-deletion-spandanm110

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Explicit Permission: Ensures that no file is deleted without direct user consent.
  • Batch Deletion Support: Handles requests to delete multiple files simultaneously.
  • Use Case: When a command like rm -rf important_data/ is issued, this Skill will intercept it, ask for confirmation, and only proceed if the user explicitly allows the deletion.

Quick Start

Use the safe-file-deletion skill to request permission to delete the file at '/path/to/sensitive_document.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 require confirmation before executing rm file deletion commands?

To require confirmation before executing rm file deletion commands, you need an interceptor mechanism that pauses the operation and explicitly asks for user permission. This process prevents accidental data loss by ensuring no file removal occurs without direct consent.

What is the best way to prevent accidental data loss during batch file purges?

Preventing accidental data loss during batch file purges requires an explicit permission step before any deletion occurs. This mechanism intercepts directory removal requests, prompting the user to verify and allow the batch deletion to prevent unauthorized file removal.

How does the unlink confirmation mechanism work for directory removals?

The unlink confirmation mechanism works by intercepting directory removal requests and invoking a permission request function. It halts the actual file deletion process until the user provides explicit consent, ensuring sensitive directories are not removed unintentionally.

Can I intercept and block unauthorized file deletion in command-line scripts?

Yes, you can intercept and block unauthorized file deletion in command-line scripts by enforcing a confirmation step. This requires routing all file removal functions through a permission check that stops execution unless explicit user consent is granted.

Does safe-file-deletion support single file deletions and batch purges?

Yes, safe-file-deletion supports both single file deletions and batch purges. It handles requests to delete multiple files simultaneously by requiring explicit user confirmation before proceeding with any file removal operation across command-line tools.