---
updatedAt: 2025-06-10T22:02:37.000Z
agentTools:
  projectIndex: https://docs.kondukto.io/llms.txt
---

# Delete An Attachment

Delete an attachment of a vulnerability by attachment id

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "vulnerabilities",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://{hostname}/api/v2/vulnerabilities",
      "variables": {
        "hostname": {
          "default": "hostname"
        }
      }
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/{vulnerabilityID}/screenshots/{attachmentID}": {
      "delete": {
        "summary": "Delete An Attachment",
        "description": "Delete an attachment of a vulnerability by attachment id",
        "operationId": "delete-a-screenshot",
        "parameters": [
          {
            "name": "vulnerabilityID",
            "in": "path",
            "description": "Vulnerability ID",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "attachmentID",
            "in": "path",
            "description": "Attachment ID",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "X-Cookie",
            "in": "header",
            "description": "Personal Access Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "204",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error\": \"failed to delete screenshot\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "failed to delete screenshot"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error\": \"failed to authorize\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "failed to authorize"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request DELETE 'http(s)://{hostname}/api/v2/vulnerabilities/{vulnerabilityID}/screenshots/{screenshotID}' \\\n--header 'X-Cookie: {token}'"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```