diff --git a/src/ReC.API/Controllers/OutResController.cs b/src/ReC.API/Controllers/OutResController.cs
index 3f15be6..eff3b6e 100644
--- a/src/ReC.API/Controllers/OutResController.cs
+++ b/src/ReC.API/Controllers/OutResController.cs
@@ -1,6 +1,7 @@
using MediatR;
using Microsoft.AspNetCore.Mvc;
using ReC.API.Extensions;
+using ReC.Application.OutResults.Commands;
using ReC.Application.OutResults.Queries;
namespace ReC.API.Controllers;
@@ -55,6 +56,21 @@ public class OutResController(IMediator mediator, IConfiguration config) : Contr
_ => Ok(res),
};
}
+
+ ///
+ /// Deletes output results based on the provided criteria.
+ ///
+ /// The command containing the deletion criteria, such as ActionId or ProfileId.
+ /// A token to cancel the operation.
+ /// An empty response indicating success.
+ [HttpDelete]
+ [ProducesResponseType(StatusCodes.Status204NoContent)]
+ [ProducesResponseType(StatusCodes.Status400BadRequest)]
+ public async Task Delete([FromQuery] DeleteOutResCommand command, CancellationToken cancel)
+ {
+ await mediator.Send(command, cancel);
+ return NoContent();
+ }
}
///