> ## Documentation Index
> Fetch the complete documentation index at: https://api.quizrise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Quiz API

> Delete a quiz and all its associated questions



## OpenAPI

````yaml DELETE /quiz/{quizId}
openapi: 3.0.1
info:
  license:
    name: MIT
  title: QuizRise API
  version: 1.0.0
  description: API for managing quizzes, questions, and related operations
servers:
  - url: https://app.quizrise.com/api/v1
security:
  - bearerAuth: []
paths:
  /quiz/{quizId}:
    delete:
      summary: Delete a quiz
      description: >-
        Deletes a quiz by its ID. Requires authentication and classroom
        ownership.
      parameters:
        - name: quizId
          in: path
          required: true
          schema:
            type: string
          description: The ID of the quiz to delete
      responses:
        '200':
          description: Quiz successfully deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                    example: Quiz successfully deleted
        '400':
          description: Bad request - Quiz ID is missing
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    example: Quiz ID is required.
        '401':
          description: Unauthorized - Invalid or missing API token
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
        '403':
          description: Forbidden - No access to the quiz
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    example: Quiz not found or access denied.
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    example: Failed to delete quiz.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````