---
title: "POST /BatchDeleteThreatModels"
method: POST
path: "/BatchDeleteThreatModels"
---

# POST /BatchDeleteThreatModels

`POST /BatchDeleteThreatModels`

Deletes one or more threat models from an agent space.

## Request body

- object
  - `threatModelIds` String[], required — List of threat model IDs.
  - `agentSpaceId` string, required — The unique identifier of the agent space that contains the threat models to delete.

## Response `200`

Success

- BatchDeleteThreatModelsOutput — Output for the BatchDeleteThreatModels operation.
  - `deleted` String[] — The list of threat model identifiers that were successfully deleted.
  - `failed` DeleteThreatModelFailure[] — The list of threat models that failed to delete, including the reason for each failure.
    - `threatModelId` string — The unique identifier of the threat model that failed to delete.
    - `reason` string — The reason the threat model failed to delete.

---

[API](https://skmtc.net/aws/apis/securityagent.md) · [All operations](https://skmtc.net/aws/apis/securityagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/securityagent/versions/cad56717d636/schema)
