---
title: "Delete a variant"
method: DELETE
path: "/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}"
tags: ["Feature Flags"]
---

# Delete a variant

`DELETE /api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Deletes a variant from a feature flag.

When backend approvals are enabled and the flag requires approval, this endpoint creates and returns a `FlagSuggestion` with `201 Created` instead of deleting the variant immediately. If a pending suggestion already exists for this flag's variant property, the endpoint returns `409 Conflict`.

## Path parameters

- `feature_flag_id` string, uuid, required
- `variant_id` string, uuid, required

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict - A pending suggestion already exists for this property.
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
