---
title: "Delete a custom threat-model section"
method: POST
path: "/api/v2/threatModel/deleteCustomSection"
tags: ["Threat Model"]
---

# Delete a custom threat-model section

`POST /api/v2/threatModel/deleteCustomSection`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/threatModel/deleteCustomSection`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Delete a custom (user-titled) threat-model section. Cannot delete fixed sections — the agent owns their lifecycle and the editor renders all fixed slots whether their content is empty or not; to clear a fixed section, call threatModel.updateFixedSection with empty content. Requires ORG_EDIT_SAST_CONFIG.

## Request body

- ThreatModelDeleteCustomSectionRequest
  - `organizationId` string: Organization that owns the threat model.
  - `sectionId` string, required: cuid of the ThreatModelCustomSection to delete.

## Response `200`

Custom section deleted

- ThreatModelDeleteResponse
  - `success` boolean, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `404`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
