GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → deleteApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteId

AI-generated

Summary

Delete a specific draft note from a merge request within a GitLab project by providing the project ID, merge request IID, and draft note ID.

Inputs

  • id (required) — The ID of the GitLab project where the merge request exists.
  • merge_request_iid (required) — The internal ID (IID) of the merge request containing the draft note.
  • draft_note_id (required) — The ID of the draft note to delete from the specified merge request.
  • baseUrl — Base URL for the GitLab instance; defaults to 'https://gitlab.com'.
  • skipAuthentication — Boolean flag to skip authentication; default is false.

Output shape

no body — success/failure only

The operation sends a DELETE request to the GitLab API and does not return any body content. Success or failure is indicated by HTTP status codes.

Examples

Example 1: Delete a draft note from a merge request

Set the project ID, merge request IID, and draft note ID to identify the draft note to delete. Optionally specify a custom base URL if not using gitlab.com.

Links

Discussion