Skip to content

1. Add DELETE /api/v1/admin/courses/:id/modules/:moduleId/quizzes/:quizId endpoint #414

Description

@DeFiVC

What: Add an admin endpoint for deleting a quiz and its submissions.

Why: Admins need to remove quizzes that are incorrect, outdated, or no longer needed. Currently there's no way to delete quizzes.

Scope: Create endpoint that deletes the quiz and all associated submissions. Use database transaction for atomicity. Log the deletion in audit logs.

Acceptance criteria:

  • Quiz is deleted with all submissions
  • Operation is atomic
  • Deletion is logged in audit logs
  • Quiz is removed from course module

Technical context: src/modules/quizzes/quiz.service.ts — quiz operations. src/database/schema.ts:88-109 — quizzes table.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions