---
title: "Delete a group (team)"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a group (team)

Path: CloudRaker Workspace API › Authorization

`DELETE /authorization/groups/{groupId}`

Deletes the group named by the `groupId` path parameter and revokes its role grants. Authorization: organization administrators only — other callers get 403. Returns 204 No Content on success.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `groupId` (`deleteGroup.path.groupId`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.cloudraker.com/authorization/groups/<groupId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/authorization/groups/<groupId>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/authorization/groups/<groupId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

The group was deleted

### 403

Caller is not an org admin


Source: https://docs.cloudraker.com/workspace/api/authorization/delete-group/index.md
