diff --git a/src/GitLabApiClient/IMergeRequestsClient.cs b/src/GitLabApiClient/IMergeRequestsClient.cs
index 92bfce6b..2daf61ac 100644
--- a/src/GitLabApiClient/IMergeRequestsClient.cs
+++ b/src/GitLabApiClient/IMergeRequestsClient.cs
@@ -91,6 +91,14 @@ public interface IMergeRequestsClient
/// Merge requests satisfying options.
Task> GetNotesAsync(ProjectId projectId, int mergeRequestIid, Action options = null);
+ ///
+ /// Deletes a note of a merge request.
+ ///
+ /// The ID, path or of the project.
+ /// Iid of the merge request.
+ /// ID of the merge request note.
+ Task DeleteNoteAsync(ProjectId projectId, int mergeRequestIid, int noteId);
+
///
/// List erge request pipelines
///
diff --git a/src/GitLabApiClient/MergeRequestsClient.cs b/src/GitLabApiClient/MergeRequestsClient.cs
index 7926c86b..92f443cf 100644
--- a/src/GitLabApiClient/MergeRequestsClient.cs
+++ b/src/GitLabApiClient/MergeRequestsClient.cs
@@ -150,6 +150,17 @@ public async Task> GetNotesAsync(ProjectId projectId, int mergeReque
return await _httpFacade.GetPagedList(url);
}
+ ///
+ /// Deletes a note of a merge request.
+ ///
+ /// The ID, path or of the project.
+ /// Iid of the merge request.
+ /// ID of the merge request note.
+ public async Task DeleteNoteAsync(ProjectId projectId, int mergeRequestIid, int noteId)
+ {
+ await _httpFacade.Delete($"projects/{projectId}/merge_requests/{mergeRequestIid}/notes/{noteId}");
+ }
+
///
/// List erge request pipelines
///