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

# Delete Job

> Delete a quantum job by its job QRN.

**Args:**
- **job_qrn** (string): Job QRN (qBraid Resource Name)

**Returns:**
- Success message confirming job deletion

**Raises:**
- **403**: You do not have permission to delete this job
- **404**: Job is not found
- **422**: Validation error if the job_qrn parameter is invalid

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "message": "Job deleted successfully"
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml delete /jobs/{job_qrn}
openapi: 3.1.0
info:
  title: qBraid Runtime API
  description: FastAPI backend powering qBraid's quantum runtime microservice.
  version: '2'
servers:
  - url: https://api-v2.qbraid.com/api/v1
    description: Live Server
security:
  - ApiKeyAuth: []
paths:
  /jobs/{job_qrn}:
    delete:
      tags:
        - jobs
      summary: Delete Job
      description: |-
        Delete a quantum job by its job QRN.

        **Args:**
        - **job_qrn** (string): Job QRN (qBraid Resource Name)

        **Returns:**
        - Success message confirming job deletion

        **Raises:**
        - **403**: You do not have permission to delete this job
        - **404**: Job is not found
        - **422**: Validation error if the job_qrn parameter is invalid
      operationId: delete_job_jobs__job_qrn__delete
      parameters:
        - name: job_qrn
          in: path
          required: true
          schema:
            type: string
            description: Job QRN (qBraid Resource Name)
            title: Job Qrn
          description: Job QRN (qBraid Resource Name)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteJobResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: You do not have permission to delete this job
        '404':
          description: Job Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Job not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeleteJobResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the deletion was successful
        data:
          type: object
          properties:
            message:
              type: string
              description: Success message
              example: Job deleted successfully
          required:
            - message
      type: object
      required:
        - success
        - data
      title: DeleteJobResponse
      description: Response schema for single job deletion
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        Authenticate requests using an API key linked to your qBraid account.
        Obtain your key by registering or logging in at
        [account.qbraid.com](https://account.qbraid.com).

````