# Agentuity CLI Cloud Sandbox Rmdir

> Remove a directory from a sandbox. Requires authentication. Use for Agentuity cloud platform operations

- Skill: `agentuity-docs/agentuity-cli-cloud-sandbox-rmdir` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentuity-docs/agentuity-cli-cloud-sandbox-rmdir`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentuity-docs/agentuity-cli-cloud-sandbox-rmdir/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- License: Apache-2.0
- Author: agentuity (https://skillmd.com/u/agentuity-docs)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/agentuity-docs/agentuity-cli-cloud-sandbox-rmdir

---


# Cloud Sandbox Rmdir

Remove a directory from a sandbox

## Prerequisites

- Authenticated with `agentuity auth login`
- Organization context required (`--org-id` or default org)

## Usage

```bash
agentuity cloud sandbox rmdir <sandboxId> <path> [options]
```

## Arguments

| Argument | Type | Required | Description |
|----------|------|----------|-------------|
| `<sandboxId>` | string | Yes | - |
| `<path>` | string | Yes | - |

## Options

| Option | Type | Required | Default | Description |
|--------|------|----------|---------|-------------|
| `--recursive` | boolean | No | `false` | Remove directory and all contents |

## Examples

Remove an empty directory from the sandbox:

```bash
bunx @agentuity/cli cloud sandbox rmdir sbx_abc123 /path/to/dir
```

Remove a directory and all its contents recursively:

```bash
bunx @agentuity/cli cloud sandbox rmdir sbx_abc123 /path/to/dir -r
```

## Output

Returns JSON object:

```json
{
  "success": "boolean",
  "path": "string"
}
```

| Field | Type | Description |
|-------|------|-------------|
| `success` | boolean | - |
| `path` | string | - |

