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

# Delete a scan

> Deletes one of your finished scans. It disappears from your lists and its report can't be read any more; the scan, report and target are removed for good 10 days later (until then validate.al support can restore it). It still counts towards the allowance of the day it ran. A scan that is pending or in progress can't be deleted.



## OpenAPI

````yaml /api-reference/openapi.yaml delete /scans/{scan_id}
openapi: 3.0.3
info:
  title: validate.al API
  description: >-
    Email validation, security scanning and account management, all at
    https://api.validate.al.
  version: '1.0'
servers:
  - url: https://api.validate.al/v1
security:
  - ApiKeyAuth: []
tags:
  - name: Email validation
  - name: Scanning
  - name: Account
  - name: Health
paths:
  /scans/{scan_id}:
    delete:
      tags:
        - Scanning
      summary: Delete a scan
      description: >-
        Deletes one of your finished scans. It disappears from your lists and
        its report can't be read any more; the scan, report and target are
        removed for good 10 days later (until then validate.al support can
        restore it). It still counts towards the allowance of the day it ran. A
        scan that is pending or in progress can't be deleted.
      operationId: deleteScan
      parameters:
        - name: scan_id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: integer
                    example: 42
        '404':
          description: Scan not found or not yours.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The scan is still pending or in progress.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      description: Errors from scanning and account endpoints.
      type: object
      properties:
        detail:
          type: string
          description: Error message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your validate.al API key, from the portal (Settings → API Key).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.