DELETE /api/v1/assignment/{id}

Permanently delete an assignment and all associated submissions. Only admins and lecturers can delete assignments.

Path parameters

  • id string Required

    UUID of the assignment to delete

Responses

  • 200 application/json

    Assignment deleted successfully

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 403

    Forbidden - Admin or Lecturer role required

  • 404

    Assignment not found

DELETE /api/v1/assignment/{id}
curl \
 --request DELETE 'http://localhost:3500/api/v1/assignment/assignment-123'
Response examples (200)
{
  "message": "Assignment deleted successfully",
  "success": true
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}