# Delete an exam **DELETE /api/v1/exam/{id}** Permanently delete an exam. Only admins and lecturers can delete exams. Cannot delete exams with existing attempts. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) UUID of the exam to delete ## Responses ### 200 Exam deleted successfully ### 400 Default bad request error 400 response #### Body: application/json (object) - **message** (string) Response message - **error** (string) - **statusCode** (number) ### 401 Unauthorized - Admin or Lecturer role required ### 403 Cannot delete exam with existing attempts ### 404 Exam not found [Powered by Bump.sh](https://bump.sh)