Permanently delete an exam. Only admins and lecturers can delete exams. Cannot delete exams with existing attempts.
DELETE
/api/v1/exam/{id}
curl \
--request DELETE 'http://localhost:3500/api/v1/exam/123e4567-e89b-12d3-a456-426614174000'
Response examples (200)
{
"message": "Exam deleted successfully",
"success": true
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}