---
title: "Remove a per-user feature flag override"
description: "Deletes the override so the user inherits the workspace flag again. SaaS platform owners only. CRM_CORE is reserved and rejected with code RESERVED_FEATURE_FLAG."
---

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

Path: Channel Automation API › Workspaces

`DELETE /api/feature-flag-admin/workspaces/{workspaceId}/users/{userId}/flags/{flagName}`

Deletes the override so the user inherits the workspace flag again. SaaS platform owners only. CRM_CORE is reserved and rejected with code RESERVED_FEATURE_FLAG.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `workspaceId` (`delete/api/feature-flag-admin/workspaces/workspaceId/users/userId/flags/flagName.path.workspaceId`; string, required)
- `userId` (`delete/api/feature-flag-admin/workspaces/workspaceId/users/userId/flags/flagName.path.userId`; string, required)
  - format `uuid`
- `flagName` (`delete/api/feature-flag-admin/workspaces/workspaceId/users/userId/flags/flagName.path.flagName`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.channelautomation.com/api/feature-flag-admin/workspaces/<workspaceId>/users/<userId>/flags/<flagName>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/feature-flag-admin/workspaces/<workspaceId>/users/<userId>/flags/<flagName>';
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.channelautomation.com/api/feature-flag-admin/workspaces/<workspaceId>/users/<userId>/flags/<flagName>"

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

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

print(response.text)
```

## Responses

### 200

Override removed

### 400

Invalid or reserved flag name, or user id

### 401

Missing or invalid verified user session

### 403

Not a SaaS platform owner

### 500

Server error

### 503

Identity verification unavailable


Source: https://developer.channelautomations.com/api/delete-api-feature-flag-admin-workspaces-workspace-id-users-user-id-flags-flag-name/index.md
