---
title: "# Delete Threat"
method: DELETE
path: "/v1/threat-library/threats/{ThreatId}"
tags: ["Threats"]
---

# # Delete Threat

`DELETE /v1/threat-library/threats/{ThreatId}`

## Request

- Base URL: `https://api.picussecurity.com`
- URL: `https://api.picussecurity.com/v1/threat-library/threats/{ThreatId}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/picussecurity/apis/picus-rest-api/docs/v1/threat-library/threats/:ThreatId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes custom threats with given threat ID

## Path parameters

- `ThreatId` integer, required

## Response `200`

ThreatDeleteReturnResponse

- object
  - `message` string

## Other responses

- `422`: validationErrorSwagger is represents the erroneous cases
- `default`: genericErrorSwagger is represents the erroneous cases

---

[API](https://skmtc.dev/picussecurity/apis/picus-rest-api.md) - [All operations](https://skmtc.dev/picussecurity/apis/picus-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/picussecurity/apis/picus-rest-api/revisions/319e45a98304?raw)
