GitLab API

GitlabTool

Actions1095

Merge_requests → deleteApiV4ProjectsIdMergeRequestsMergeRequestIid

AI-generated

Summary

Delete a specific merge request from a GitLab project by providing the project ID or URL-encoded path and the merge request's internal ID.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project from which to delete the merge request.
  • merge_request_iid (required) — The internal ID of the merge request to be deleted.
  • skipAuthentication — Optionally skip authentication for this request (default is false).
  • baseUrl — The base URL of the GitLab instance (default is https://gitlab.com).

Output shape

no body — success/failure only

The operation performs a DELETE HTTP request to the endpoint /api/v4/projects/{id}/merge_requests/{merge_request_iid} and does not return a body on success. Authentication through GitLab API credentials is used unless skipAuthentication is set to true.

Examples

Example 1: Delete the merge request with internal ID 42 from project 'my-group/my-project'

Set 'id' to 'my-group/my-project' and 'merge_request_iid' to 42, then execute the operation.

Links

Discussion