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

# POST /DeleteAgentSpace

`POST /DeleteAgentSpace`

Deletes an agent space and all of its associated resources, including pentests, findings, and artifacts.

## Request body

- object
  - `agentSpaceId` string, required — Unique identifier of the agent space.

## Response `200`

Success

- DeleteAgentSpaceOutput — Output for the DeleteAgentSpace operation.
  - `agentSpaceId` string — The unique identifier of the deleted agent space.

---

[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)
