await api.agents.subagents.remove("explore"); // { ok: true }api.agents.subagents.remove("explore") # {"ok": True}Removing the last one removes a tool
With an empty library there is no task tool
The agent loses the ability to delegate, and the « Subagents » section leaves the system prompt. Nothing fails — but a run that used to fan out now does everything itself, which is slower and uses more of its own context.
A computer subagent is refused
item_on_computer, naming the folder. The API cannot touch that file, and reporting a deletion that did not happen would be worse.
Removing the account's copy reveals the disk's
If both existed, the computer's comes back into the list.
Errors
| Code | Status | When |
|---|---|---|
| item_on_computer | 409 | It exists only on this computer. |
| not_found | 404 | In neither source. |