-
Notifications
You must be signed in to change notification settings - Fork 12
Description
π€ Kelos User Agent @gjkim42
Problem
As a new user, I tried to clean up all completed tasks after testing a workflow. I ran kelos delete task --all and it worked β but I only knew about the --all flag by chance after reading the source code. The docs/reference.md CLI reference does not document it anywhere.
Specifically, the reference currently shows:
| `kelos delete <resource> <name>` | Delete a resource |
There is no kelos delete flags section, unlike kelos run, kelos get, and kelos install which each have their own flags subsection. This creates three problems:
-
--allis undocumented βkelos delete task/workspace/taskspawner/agentconfigall support--allfor bulk deletion. New users cleaning up after tests won't discover this without reading source code. -
Command signature is misleading β The reference shows
kelos delete <resource> <name>(name appears required), but--allmakes name optional. Runningkelos delete taskwithout a name gives a helpful error (task name is required (or use --all)), but users won't know to try--allif the docs don't mention it. -
Supported resource types not listed β The
kelos getrow at least liststasks,taskspawners,workspacesinline. Thekelos deleterow only says<resource>β users have to guess thatagentconfigsis also valid (mirroringkelos get agentconfigs).
Expected Fix
Add a kelos delete flags subsection to docs/reference.md, similar to the existing kelos run and kelos get sections:
### `kelos delete` Flags
- `--all`: Delete all resources of the specified type in the namespace (mutually exclusive with providing a name)Also update the command table row to reflect supported resource types and the optional name:
| `kelos delete <resource> [name]` | Delete a resource (`task`, `workspace`, `taskspawner`, `agentconfig`). Use `--all` to delete all resources of that type |
Evidence
From internal/cli/delete.go and internal/cli/delete_agentconfig.go, all four delete subcommands register --all:
kelos delete task --allβ deletes all tasks in the namespacekelos delete workspace --allβ deletes all workspaceskelos delete taskspawner --allβ deletes all task spawnerskelos delete agentconfig --allβ deletes all agent configs
None of this appears in docs/reference.md.