---
title: Delete a Single Experiment User ID Override
description: "Removes a single user ID from the matching userID override bucket on the experiment. Idempotent: returns 200 even when the user ID is not currently overridde…"
product: general
token_estimate: 1888
---
# Delete a Single Experiment User ID Override

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

## Delete a Single Experiment User ID Override

**DELETE** `/console/v1/experiments/{id}/overrides/userID/{userID}`

Full URL: `https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}`

Delete a Single Experiment User ID Override

Removes a single user ID from the matching userID override bucket on the experiment. Idempotent: returns 200 even when the user ID is not currently overridden. Only clears the bucket named by `groupID`, `unitType`, and `environment`; every other override bucket stays in place. The response body carries the full override set for the experiment after the delete.

## Authorizations

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| STATSIG-API-KEY | string | Yes | — | apiKey (header) |

## Path parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| id (path) | string | Yes | — | Experiment name |
| userID (path) | string | Yes | — | User ID to remove from the override |

## Query parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| groupID (query) | string | Yes | Control | The experiment group name the override targets |
| unitType (query) | string | No | — | The unit type of the override. Defaults to the experiment unit type when omitted. |
| environment (query) | string | No | — | Environment the override is scoped to. Omit to target the override that applies to all environments. |

## Response (application/json)

**200** — Delete Single Experiment User ID Override Success

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| message | string | Yes | — | A simple string explaining the result of the operation. |
| data | object | Yes | — | — |
| data.overrides | object[] | Yes | — | Array of experiment overrides, each specifying type, ID, and group ID. |
| data.overrides.type | string | Yes | — | Allowed values: gate, segment |
| data.overrides.id | string | Yes | — | The id of the segment or gate |
| data.overrides.groupID | string | Yes | — | The experiment group which user will be forced into |
| data.overrides.environment | string | No | — | Optional environment designation (e.g., production, staging) for the experiment. Constraints: nullable |
| data.userIDOverrides | object[] | Yes | — | Array of user ID overrides, specifying which users to force into experiment groups. |
| data.userIDOverrides.groupID | string | Yes | — | The experiment group the user will be forced into. |
| data.userIDOverrides.ids | string[] | Yes | — | Array of user IDs to be assigned to the specified experiment group. |
| data.userIDOverrides.environment | string | No | — | Optional environment designation (e.g., production, staging) for the experiment. Constraints: nullable |
| data.userIDOverrides.unitType | string | No | — | Optional type of unit for the experiment, defining the scope of the override. Constraints: nullable |

```json
{
  "message": "Experiment Overrides updated successfully.",
  "data": {
    "overrides": [
      {
        "type": "gate",
        "id": "a_gate",
        "groupID": "Test",
        "environment": null
      }
    ],
    "userIDOverrides": [
      {
        "groupID": "Control",
        "ids": [
          "user_a"
        ],
        "environment": null,
        "unitType": "userID"
      },
      {
        "groupID": "Control",
        "ids": [
          "user_b"
        ],
        "environment": "staging",
        "unitType": "userID"
      },
      {
        "groupID": "Test",
        "ids": [
          "user_c"
        ],
        "environment": null,
        "unitType": "userID"
      }
    ]
  }
}
```

**400** — `groupID` is missing. The `errors` array names the parameter that failed validation.

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| status | integer | Yes | — | Allowed values: 400 |
| message | string | Yes | — | — |

```json
{
  "status": 400,
  "message": "Bad Request Exception"
}
```

**401** — This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| status | integer | Yes | — | Allowed values: 401 |
| message | string | Yes | — | — |

```json
{
  "status": 401,
  "message": "This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx"
}
```

**404** — Experiment or group not found.

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| status | integer | Yes | — | Allowed values: 404 |
| message | string | Yes | — | — |

```json
{
  "status": 404,
  "message": "Not Found. The requested resource could not be found."
}
```

## Code samples

### cURL

```bash
curl -X DELETE "https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}?groupID=Control" \
  -H "Content-Type: application/json" \
  -H "STATSIG-API-KEY: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.delete(
    "https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}?groupID=Control",
    headers={
        "Content-Type": "application/json",
        "STATSIG-API-KEY": "YOUR_API_KEY"
    }
)
data = response.json()
```

### JavaScript

```javascript
const response = await fetch("https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}?groupID=Control", {
  method: "DELETE",
  headers: {
    "Content-Type": "application/json",
    "STATSIG-API-KEY": "YOUR_API_KEY"
  }
});
const data = await response.json();
```

### PHP

```php
<?php
$ch = curl_init("https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}?groupID=Control");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json",
    "STATSIG-API-KEY: YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
```

### Go

```go
package main

import (
  "bytes"
  "net/http"
)

func main() {
req, _ := http.NewRequest("DELETE", "https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}?groupID=Control", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("STATSIG-API-KEY", "YOUR_API_KEY")
  client := &http.Client{}
  resp, _ := client.Do(req)
  defer resp.Body.Close()
}
```

### Java

```java
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}?groupID=Control"))
      .method("DELETE", HttpRequest.BodyPublishers.noBody())
.header("Content-Type", "application/json")
      .header("STATSIG-API-KEY", "YOUR_API_KEY")
      .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
```

### Ruby

```ruby
require "net/http"
require "json"

uri = URI("https://statsigapi.net/console/v1/experiments/{id}/overrides/userID/{userID}?groupID=Control")
request = Net::HTTP::Delete.new(uri)
request["Content-Type"] = "application/json"
request["STATSIG-API-KEY"] = "YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end
```

