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

# Delete a target permanently

> Permanently deletes a security testing target and all its associated data (assets, vulnerabilities, jobs, and related records) from the specified workspace.



## OpenAPI

````yaml /api-reference/openapi.json delete /api/targets/{id}/workspace/{workspaceId}
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/targets/{id}/workspace/{workspaceId}:
    delete:
      tags:
        - Targets
      summary: Delete a target permanently
      description: >-
        Permanently deletes a security testing target and all its associated
        data (assets, vulnerabilities, jobs, and related records) from the
        specified workspace.
      operationId: TargetsController_deleteTarget
      parameters:
        - name: id
          required: true
          in: path
          description: The id of the resource
          schema:
            type: string
        - name: workspaceId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultMessageResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    DefaultMessageResponseDto:
      type: object
      properties:
        message:
          type: string
          example: Success
      required:
        - message

````