multiAI Summary Pending
clean
Clean up Kurtosis enclaves and artifacts. Remove stopped enclaves, running enclaves with -a flag, and stopped engine containers. Use when you need to free up resources or start fresh.
528 stars
Installation
Claude Code / Cursor / Codex
$curl -o ~/.claude/skills/clean/SKILL.md --create-dirs "https://raw.githubusercontent.com/kurtosis-tech/kurtosis/main/skills/clean/SKILL.md"
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/clean/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How clean Compares
| Feature / Agent | clean | Standard Approach |
|---|---|---|
| Platform Support | multi | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Clean up Kurtosis enclaves and artifacts. Remove stopped enclaves, running enclaves with -a flag, and stopped engine containers. Use when you need to free up resources or start fresh.
Which AI agents support this skill?
This skill is compatible with multi.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Clean
Remove Kurtosis enclaves and leftover artifacts.
## Basic clean
Removes only **stopped** enclaves and stopped engine containers:
```bash
kurtosis clean
```
## Clean everything
Removes **all** enclaves (including running ones):
```bash
kurtosis clean -a
```
## Selective removal
To remove a specific enclave without touching others:
```bash
# Stop an enclave
kurtosis enclave stop <enclave-name>
# Remove a specific enclave
kurtosis enclave rm <enclave-name>
```
## When clean hangs
On Kubernetes, `kurtosis clean -a` can hang if the logs collector cleanup tries to create pods on tainted/unhealthy nodes. See the `k8s-clean-cluster` skill for manual cleanup steps.
On Docker, if clean hangs:
```bash
# Kill the hanging process
pkill -f "kurtosis clean"
# Manually remove containers
docker ps -a | grep kurtosis | awk '{print $1}' | xargs -r docker rm -f
# Remove networks
docker network ls | grep kurtosis | awk '{print $1}' | xargs -r docker network rm
# Restart engine
kurtosis engine start
```