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

# Delete Target

> Permanently delete a target after confirming its exact name. Deletion is rejected while an assessment is queued or running.



## OpenAPI

````yaml /openapi.json delete /v1/targets/{target_id}
openapi: 3.1.0
info:
  title: MindFort API
  version: 1.0.0
  description: >-
    The MindFort Public API supports targets, assessments, finding lifecycle and
    analytics, and reports. Public responses use positive field allowlists and
    call informational non-vulnerable results `secured`.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/targets/{target_id}:
    delete:
      tags:
        - Targets
      summary: Delete Target
      description: >-
        Permanently delete a target after confirming its exact name. Deletion is
        rejected while an assessment is queued or running.
      operationId: deleteTarget
      parameters:
        - name: target_id
          in: path
          required: true
          description: Target UUID
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteTargetRequest'
      responses:
        '200':
          description: Target deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteTargetResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Not permitted for this organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Confirmation mismatch or active assessment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    DeleteTargetRequest:
      type: object
      required:
        - confirm_target_name
      properties:
        confirm_target_name:
          type: string
          minLength: 1
          maxLength: 255
          description: Exact current target name, obtained from getTarget
      additionalProperties: false
    DeleteTargetResponse:
      type: object
      required:
        - success
        - target_id
      properties:
        success:
          type: boolean
          const: true
        target_id:
          type: string
          format: uuid
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        code:
          type: string
          description: Stable machine-readable error code when one is available
        request_id:
          type: string
          description: Unique request identifier for debugging
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````