---
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}`

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/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
