GitLab API icon

GitLab API

Gitlab

Actions1062

Hooks → deleteApiV4HooksHookIdUrlVariablesKey

AI-generated

Summary

Removes a specific key-value pair from a GitLab project's hook URL variables.

Inputs

  • hook_id (required) — The ID of the hook.
  • key (required) — The key of the variable to delete.
  • baseUrl — The GitLab API base URL (defaults to https://gitlab.com).
  • skipAuthentication — Skip authentication by using a header instead of credentials.

Output shape

No body — returns the HTTP response envelope.

The operation sends a DELETE request to the GitLab API endpoint /api/v4/hooks/{hook_id}/url_variables/{key}.

Examples

Example 1: Delete a URL variable for a specific hook

Set Hook ID to the target hook (e.g., 123) and Key to the variable name (e.g., MY_VAR).

Links

Discussion