---
title: "Delete an auth config"
url: https://hexelstudio.com/docs/api/titan/connections/delete-an-auth-config
---

# Delete an auth config

**DELETE** `/titan/tools/auth-configs/{id}`

Delete an auth configuration. Connected accounts are preserved (link cleared).

Requires permission `tool-gateway:auth:write`.

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

- `X-Workspace-Id: optional string`

  Workspace scope used by permission checks, if applicable.

- `X-Environment-Id: optional string`

  Optional environment scope.

## Returns

`204` Deleted

## Errors

- `400` Bad Request
- `401` Unauthenticated: token missing or rejected at the edge
- `403` Forbidden: caller lacks the required permission
- `404` Not Found

## Example

```bash
curl --request DELETE \
  --url 'https://api.hexelstudio.com/v1/titan/tools/auth-configs/{id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (404)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
