---
title: "Unenroll User from Agent Group"
method: DELETE
path: "/api/v1/agent-groups/{agentGroupId}/enrollments/{userId}"
---

# Unenroll User from Agent Group

`DELETE /api/v1/agent-groups/{agentGroupId}/enrollments/{userId}`

## Request

- Base URL: `https://api.skyfire.xyz`
- URL: `https://api.skyfire.xyz/api/v1/agent-groups/{agentGroupId}/enrollments/{userId}`
- Auth: API key in header `skyfire-api-key`

As an Organization Admin, remove a user from an agent group. Their instance of the group is deactivated and its cards are removed.

## Path parameters

- `agentGroupId` string, uuid, required
- `userId` string, uuid, required

## Response `204`

No Content. The user is unenrolled; the instance is deactivated and its cards removed.

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity

## Changes

- **2026-11-03** `22cbec9d7630`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/changes/api/v1/agent-groups/:agentGroupId/enrollments/:userId/delete.md)

---

[API](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis.md) - [All operations](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/revisions/22cbec9d7630?raw)
