---
title: "Delete a repository variable"
method: DELETE
path: "/repos/{owner}/{repo}/actions/variables/{name}"
tags: ["actions"]
---

# Delete a repository variable

`DELETE /repos/{owner}/{repo}/actions/variables/{name}`

Deletes a repository variable using the variable name.

Authenticated users must have collaborator access to a repository to create, update, or read variables.

OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required
- `name` string, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-7.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-7/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-7/versions/5438365412fe/schema)
