safe-file-deletion

Require explicit user permission before deleting files or directories.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/TechyPark/ai-mosiur-agent --skill safe-file-deletion-techypark
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe-file-deletion
Source: https://github.com/TechyPark/ai-mosiur-agent/tree/main/packages/agent-core/mcp-tools/safe-file-deletion
Command: npx skills add https://github.com/TechyPark/ai-mosiur-agent --skill safe-file-deletion-techypark

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 the user's direct consent.
  • Batch Deletion Support: Handles requests to delete multiple files in a single operation.
  • Use Case: When an agent needs to clean up old log files, this Skill will prompt the user for approval before deleting them, preventing accidental data loss.

Quick Start

Ask the agent to delete the file '/path/to/important_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 deleting files with rm or unlink?

To require confirmation before file deletion, you need a safeguard that intercepts removal commands like rm and unlink to prompt for explicit user permission. This prevents accidental data loss by ensuring no file is removed without direct consent.

What is the best way to prevent accidental data loss during automated file deletion?

The best way to prevent accidental data loss during automated file deletion is to enforce an explicit permission step before any removal operation executes. This requires the agent to request user approval, ensuring critical files are not deleted without direct consent.

Does this file deletion safety mechanism support batch deletion of multiple files?

Yes, this file deletion safety mechanism supports batch deletion. It handles requests to remove multiple files in a single operation while still enforcing the explicit user confirmation step before executing the batch removal.

Can I use this confirmation step with standard file system removal commands?

Yes, you can use this confirmation step with standard file system removal commands. It applies to all functions that remove files or directories from disk, including rm, unlink, and fs.rm, intercepting them to require permission.

How do I stop an agent from automatically deleting important log files during cleanup?

To stop an agent from automatically deleting important log files, enforce explicit user permission before any file removal operation. When the agent attempts cleanup, it will prompt you for approval, preventing unauthorized or accidental deletion.