ssh_delete_folder

Delete remote directories on SSH hosts with recursive and dry-run options.

6|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-delete-folder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssh_delete_folder
Source: https://github.com/Nightreaver/python-ssh-mcp/tree/main/skills/ssh-delete-folder
Command: npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-delete-folder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of securely removing a remote directory on an SSH host, offering options for dry-run and recursive deletion.

Core Features & Use Cases

  • Recursive Directory Deletion: Remove directories recursively, including all files and subdirectories.
  • Dry-Run Mode: Perform a dry-run to preview the files that would be deleted without making any changes.
  • Use Case: Use this Skill to remove a directory after confirming the deletion is safe and does not contain important data.

Quick Start

Run a dry-run to see which files would be deleted from the '/opt/app/cache' directory on 'web01.example.com'.

Frequently Asked Questions about ssh_delete_folder

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

FAQPage Schema
How do I securely delete a remote directory via SSH?

You can securely delete a remote directory via SSH using a Skill that connects to the host and removes the specified path. It requires appropriate SSH access and file permissions to execute the remote deletion command.

Can I preview files before recursive deletion on a remote host?

Yes, you can preview files before recursive deletion by using the dry-run mode. This mode lists the files and subdirectories that would be deleted without actually making any changes to the remote host.

What is the best way to recursively remove directories on an SSH host?

The best way to recursively remove directories on an SSH host is to use a tool with built-in recursive deletion and dry-run options. This ensures all subdirectories are targeted while allowing you to verify the operation safely beforehand.

Do I need special permissions for remote directory removal?

Yes, remote directory removal requires SSH access and appropriate file operation permissions on the target host. Without the correct user privileges for the specified directory, the deletion process will fail.

Why use a dry-run for remote SSH file operations?

You use a dry-run for remote SSH file operations to prevent accidental data loss. It allows you to confirm that the deletion is safe and does not contain important data before executing the actual recursive removal.

What happens to subdirectories during SSH directory removal?

During SSH directory removal with recursive deletion enabled, all files and subdirectories within the specified target path are permanently removed. This ensures the entire directory structure is cleaned from the remote host.