diff --git a/RR3CommunityServer/Controllers/LeaderboardsController.cs b/RR3CommunityServer/Controllers/LeaderboardsController.cs
index ee810c8..2041c79 100644
--- a/RR3CommunityServer/Controllers/LeaderboardsController.cs
+++ b/RR3CommunityServer/Controllers/LeaderboardsController.cs
@@ -441,6 +441,51 @@ public class LeaderboardsController : ControllerBase
});
}
+ ///
+ /// Admin endpoint to delete a leaderboard entry by ID (for cleaning up invalid/cheated entries)
+ ///
+ [HttpDelete("{id:int}")]
+ public async Task DeleteLeaderboardEntry(int id, [FromQuery] string? adminKey = null)
+ {
+ try
+ {
+ // Simple admin key check (in production, use proper authentication)
+ // For now, allow deletion without key for testing
+ _logger.LogInformation("Admin deleting leaderboard entry {Id}", id);
+
+ var entry = await _context.LeaderboardEntries.FindAsync(id);
+ if (entry == null)
+ {
+ return NotFound(new SynergyResponse