rclone_rmdir

rclone_rmdir is a command for Claude Code from chaunsin/agent-skills. It costs 7 tokens per session (356 once invoked), scanned A, a copy of rclone_rmdir, Apache-2.0.

A command that removes one empty directory from a local or remote path. It leaves the path unchanged if it contains files or subdirectories.

In plain words
What is it for?
Use it to clean up empty directories in cloud storage or other rclone paths.
Why use it?
It prevents accidental deletion of data by refusing to remove non-empty directories. A dry-run option lets you check the operation first.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to clean up empty directories in cloud storage or other rclone paths.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/chaunsin/agent-skills/rclone_rmdir
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/chaunsin/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rclone_rmdir

README.md
[![agentmods](https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_rmdir/github.svg)](https://agentmods.dev/commands/chaunsin/agent-skills/rclone_rmdir)
Your own site
<a href="https://agentmods.dev/commands/chaunsin/agent-skills/rclone_rmdir"><img src="https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_rmdir/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rclone_rmdir

Your own site · 80×15
<a href="https://agentmods.dev/commands/chaunsin/agent-skills/rclone_rmdir"><img src="https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_rmdir.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 356 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00007 $0.00356
Opus 5 $0.00003 $0.00178
Sonnet 5 $0.00001 $0.00071
Haiku 4.5 $0.00001 $0.00036

Measured 5d ago against content hash 456e7abe64e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rclone_rmdir scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to rclone_rmdir — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/rclone-cli/references/commands/rclone_rmdir.md · 53 lines

What it actually says

Official documentation: https://rclone.org/commands/rclone_rmdir/

rclone rmdir

Remove the empty directory at path.

Synopsis

This removes empty directory given by path. Will not remove the path if it has any objects in it, not even empty subdirectories. Use command rmdirs (or delete with option --rmdirs) to do that.

To delete a path and any objects in it, use purge command.

rclone rmdir remote:path [flags]

Options

  -h, --help   help for rmdir

Options shared with other commands are described next. See the global flags page for global options not listed here.

Important Options

Important flags useful for most commands

  -n, --dry-run         Do a trial run with no permanent changes
  -i, --interactive     Enable interactive mode
  -v, --verbose count   Print lots more stuff (repeat for more)

See Also

  • rclone - Show help for rclone commands, flags and backends.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 53 lines · 7 tokens per session scan A 456e7abe64e0

Subscribe to this mod's changes

rclone_rmdir is a command published in the GitHub repository chaunsin/agent-skills (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 7 tokens to every session and 356 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to rclone_rmdir, differing in 2 lines, and is treated as a copy.