Delete eve run

From scaling-group/eve · View interactive version

Delete eve run is an AI agent skill from the GitHub repository scaling-group/eve. Safely delete one or more local EvE run directories, including runs whose read-only files or directories make rm fail. Use when the user explicitly asks to remove run roots under .runs/eve/, or when rm reports Permission denied or Read-only file system while pruning an EvE run.

How to use this skill

Skill file

Delete an EvE Run

Delete only run roots explicitly named by the user. Treat this as destructive and irreversible.

Delegate the Deletion

Workflow

  1. Resolve every requested path and verify that it is a specific run directory below the repository's .runs/eve/ tree. Reject .runs/eve, an app directory, an empty value, /, paths outside the repository, and paths containing unresolved variables or globs.
  2. Check whether each path exists. Report already-absent paths instead of treating them as failures.
  3. Check for an active EvE process that references the exact run path. If one exists, do not delete the live run without explicit user confirmation to stop or delete it.
  4. Make the run owner-writable, then delete it:

```bash

chmod -R u+rwX -- "$RUN_ROOT"

rm -rf -- "$RUN_ROOT"

```

Use chmod, not chomd. u+rwX adds read/write permission for the owner and execute permission only to directories or already-executable files.

  1. If chmod fails because the sandbox exposes the filesystem as read-only, retry the same narrowly scoped chmod and rm commands with the environment's escalation mechanism. Do not broaden the path or use a wildcard.
  2. Verify completion with an existence check for every exact path:

```bash

if [ -e "$RUN_ROOT" ]; then

echo "STILL_EXISTS $RUN_ROOT"

else

echo "DELETED $RUN_ROOT"

fi

```

  1. Report each run as deleted, already absent, or still present. Never claim success solely from rm producing no output.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.