API7 Docs
AISIX AI GatewayAISIX Cloud Admin APIDelete Team

Delete Team

DELETE /teams/{team_id}

DELETE /teams/{team_id}

Interactive request editor loads with JavaScript.

Authorization

BearerAdminToken
AuthorizationBearer <token>

Organization-scoped admin token. Read operations require a valid token, and write operations require a token with write permission.

In: header

Path Parameters

team_id*string

Team ID within the organization.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "$AISIX_CP/teams/$TEAM_ID" \  -H "Authorization: Bearer $AISIX_TOKEN"

Deleted

{
  "deleted": true,
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
Complete operation details and schema variants

DELETE /teams/{team_id}

Delete Team

Delete the team. Its entitlements are cleared first, so caller API keys bound to it stop carrying the team's MCP layer; the keys themselves are not deleted.

Parameters

  • team_id (path, string, required): Team ID within the organization.

Responses

  • 200: Deleted

  • deleted (boolean, required):

  • id (string, required):

  • 400: Request body or parameters failed validation.

  • error (object, required): Error details.

  • error.code (string, required): Machine-readable identifier. Examples: UNAUTHENTICATED, INVALID_REQUEST, MASTER_KEY_UNSET, INTERNAL.

  • error.message (string, required): Human-readable explanation; safe to surface to operators.

  • 401: Missing or invalid bearer. Response fields (application/json): identical to DELETE /teams/{team_id}, response 400 above.

  • 403: Authenticated request is not permitted. Response fields (application/json): identical to DELETE /teams/{team_id}, response 400 above.

  • 404: Resource not found. Response fields (application/json): identical to DELETE /teams/{team_id}, response 400 above.

cURL

curl -X DELETE '$AISIX_CP/teams/{team_id}' -H 'Authorization: Bearer $AISIX_TOKEN'