microagent delete
microagent delete <name> [--yes] [--force] [--state-dir <dir>]delete removes the workspace record and its on-disk artifacts (rootfs,
bundles, state file).
By default, delete asks for confirmation. If the workspace is running, it
asks whether to stop and delete it. Use --yes for non-interactive cleanup.
Use --force to kill a running workspace before deleting it.
| Flag | Description |
|---|---|
--state-dir <dir> | State directory holding the workspace record |
--supervisor <path> | Override the installed host backend supervisor path |
--yes, -y | Confirm deletion without prompting |
--force, -f | Kill a running workspace before deleting |
Example
Section titled “Example”microagent delete researchNon-interactive cleanup:
microagent delete research --yesForce-delete a running workspace:
microagent delete research --forceLower-level form:
microagent delete agent-1 --state-dir /tmp/microagent