---
title: "Delete a global variable"
method: DELETE
path: "/api/v1/synthetics/variables/{variable_id}"
tags: ["Synthetics"]
---

# Delete a global variable

`DELETE /api/v1/synthetics/variables/{variable_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v1/synthetics/variables/{variable_id}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `synthetics_global_variable_write`

Delete a Synthetic global variable.

## Path parameters

- `variable_id` string, required

## Response `200`

OK

## Other responses

- `400`: JSON format is wrong
- `403`: Forbidden
- `404`: Not found
- `429`: Too many requests

---

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