---
title: "Delete a subject"
method: DELETE
path: "/subjects/{subjectId}"
tags: ["Subjects"]
---

# Delete a subject

`DELETE /subjects/{subjectId}`

## Request

- Base URL: `https://api-staging.fanheroapi.com`
- URL: `https://api-staging.fanheroapi.com/subjects/{subjectId}`
- Auth: API key in header `apiKey`

## Response `200`

Subject deleted

- SubjectDto
  - `id` string: Subject ID
  - `fields` string[]: Fields
  - `entity` string: Entity identified by this subject

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Subject not found

---

[API](https://skmtc.dev/fanhero/apis/user-management-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/user-management-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/user-management-endpoints/revisions/3f982670c057?raw)
