safe-file-deletion

Require explicit user confirmation before deleting files via rm or fs.rm.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Gopikrish-30/NeoVerse-26 --skill safe-file-deletion-gopikrish-30
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe-file-deletion
Source: https://github.com/Gopikrish-30/NeoVerse-26/tree/main/packages/agent-core/mcp-tools/safe-file-deletion
Command: npx skills add https://github.com/Gopikrish-30/NeoVerse-26 --skill safe-file-deletion-gopikrish-30

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Mandatory Confirmation: Requires user approval for all file deletion requests.
  • Batch Deletion Support: Handles deletion of multiple files in a single, confirmed operation.
  • Use Case: When a script attempts to delete a critical configuration file or a user accidentally selects multiple files for deletion, this Skill will pause execution and ask for explicit user consent, preventing data loss.

Quick Start

Use the safe-file-deletion skill to delete the file located 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 require user confirmation before deleting files with rm or fs.rm?

The safe-file-deletion Skill enforces explicit user permission before executing rm, rm -rf, unlink, or fs.rm commands. It intercepts the file deletion request, requires a JSON payload with file paths, and pauses to obtain user consent prior to execution.

Can I batch delete multiple files while still requiring permission for each operation?

Yes, you can batch delete multiple files by providing an array of file paths in the JSON payload. The Skill handles the batch deletion operation while ensuring explicit user consent is obtained before any files are removed.

What is the best way to prevent accidental data loss from unauthorized file removal scripts?

The best way to prevent accidental data loss is to enforce mandatory confirmation before file removal. This Skill pauses script execution when a deletion is attempted on critical files, requiring explicit approval to prevent unauthorized or accidental deletion.

Does this file deletion safety mechanism work with programmatic file system operations like unlink?

Yes, this file deletion safety mechanism works with programmatic operations like unlink and fs.rm. It intercepts these programmatic file system calls and requires explicit user permission before allowing the deletion to proceed.

What format do I need to provide file paths in to request user consent for deletion?

You need to provide file paths in a JSON payload format specifying either a single file path or an array of file paths. This payload structure allows the Skill to identify the targets and request explicit user consent before deletion.