Skip to main content

delete_agent

Permanently delete an Agent definition by its caller-relative name: bare with a standalone personal credential, me/name for private content in organization scope, or <team>/name for a bound team. A bare organization-scoped name denotes the read-only organization catalogue. Credential assignments to a deleted definition are cleared by the storage relationship.

Parameters​

ParameterTypeRequiredDescription
namestringYesCaller-relative address: bare with a standalone personal credential, me/name in private organization space, or <team>/name for a bound team.

Response​

FieldTypeDescription
deletedstringThe submitted address, confirming deletion.

Example​

{ "name": "engineering/security-reviewer" }

Result:

{ "deleted": "engineering/security-reviewer" }

Errors​

CodeCause
agent_not_foundNo Agent remains at the requested name in the target space, including if it was renamed while this call was pending.
empty_nameThe name is empty after removing the team prefix.
forbiddenThe credential lacks delete authority, uses me/ outside organization scope, or targets the read-only organization catalogue.
team_not_foundNo team with that prefix is bound to this credential.
personal_cannot_address_teamA standalone personal credential used a Team prefix.
no_personal_spaceA userless organization credential used me/name.
invalid_argumentsInput is missing or does not match the schema.
internal_errorAn unexpected server error occurred.

Notes​

  • The tool is governed and requires Tools and tool-policy admission. A standalone personal target additionally requires its Agent-delete permission; a Team target requires a binding and the matching Team permission; me/name requires an acting user with active organization membership.
  • Deleting an assigned definition clears the assignment; it does not select a replacement.
  • Organization-catalog deletion remains a dashboard management action.