Skip to content

Docs: 'kelos delete --all' and supported resource types undocumented in CLI referenceΒ #773

@kelos-bot

Description

@kelos-bot

πŸ€– 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:

  1. --all is undocumented β€” kelos delete task/workspace/taskspawner/agentconfig all support --all for bulk deletion. New users cleaning up after tests won't discover this without reading source code.

  2. Command signature is misleading β€” The reference shows kelos delete <resource> <name> (name appears required), but --all makes name optional. Running kelos delete task without a name gives a helpful error (task name is required (or use --all)), but users won't know to try --all if the docs don't mention it.

  3. Supported resource types not listed β€” The kelos get row at least lists tasks, taskspawners, workspaces inline. The kelos delete row only says <resource> β€” users have to guess that agentconfigs is also valid (mirroring kelos 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 namespace
  • kelos delete workspace --all β€” deletes all workspaces
  • kelos delete taskspawner --all β€” deletes all task spawners
  • kelos delete agentconfig --all β€” deletes all agent configs

None of this appears in docs/reference.md.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions