---
title: "Delete a URL variable"
method: DELETE
path: "/api/v4/hooks/{hook_id}/url_variables/{key}"
tags: ["hooks"]
---

# Delete a URL variable

`DELETE /api/v4/hooks/{hook_id}/url_variables/{key}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/hooks/{hook_id}/url_variables/{key}`
- Auth: none declared

Deletes a URL variable from a specified webhook.

## Path parameters

- `hook_id` integer, required
- `key` string, required

## Response `204`

Delete a URL variable

---

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