REQUIRED for all file and directory deletions. This system replaces rm/rmdir commands. Always use this skill instead of bash rm commands when removing any files or directories. Moves items to recoverable .deleted/ trash folder with preserved structure.
/plugin marketplace add nitromike502/meckert-claude-code-marketplace/plugin install file-deleter@local-marketplaceThis skill is limited to using the following tools:
scripts/delete-file.jsCRITICAL: This skill MUST be used for ALL file and directory deletion operations. The rm command is blocked on this system.
delete-file.js scriptrm, rm -rf, rmdir commands are BLOCKEDUse this skill ANY time you need to:
rm or rmdirThe skill uses a Node.js script that:
.git and .claude directories exist).deleted/ while preserving their path structure.gitignore in .deleted/ that ignores all contents.deleted/The delete-file.js script is located in the scripts subdirectory of this skill.
When Claude Code loads this skill, the base directory path is provided, allowing the script to be located at <skill-base-dir>/scripts/delete-file.js.
Standard deletion syntax - use this for all deletions:
node <skill-base-dir>/scripts/delete-file.js <path1> [path2] [path3] ...
Examples:
# Delete single file
node <skill-base-dir>/scripts/delete-file.js src/old-component.tsx
# Delete multiple files
node <skill-base-dir>/scripts/delete-file.js file1.txt file2.js dir/file3.md
# Delete entire directory
node <skill-base-dir>/scripts/delete-file.js old-features/
# Delete multiple directories and files
node <skill-base-dir>/scripts/delete-file.js temp/ build/ old-file.txt
.deleted/ are overwritten.deleted/
src/components/Button.tsx → .deleted/src/components/Button.tsx.deleted/ are automatically git-ignoredFiles remain recoverable in .deleted/ and can be manually restored if needed.
If you attempt to use rm commands, you will receive an error message directing you to use this skill instead. Always default to using this script for any deletion operation.