---
title: "Delete a custom header"
method: DELETE
path: "/api/v4/hooks/{hook_id}/custom_headers/{key}"
tags: ["hooks"]
---

# Delete a custom header

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

## Request

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

Deletes a custom header from a specified webhook.

## Path parameters

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

## Response `204`

Delete a custom header

---

[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)
