---
title: "Delete sub-tenant"
method: DELETE
path: "/resources/hierarchy/v1"
tags: ["Account Hierarchy"]
---

# Delete sub-tenant

`DELETE /resources/hierarchy/v1`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/hierarchy/v1`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/hierarchy/v1/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete given sub-tenant from the hierarchy. A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Request body

- DeleteSubTenantRequestDto

## Other responses

- `400`: When provided parameters do not pass validation.
- `404`: When given tenants are not in parent-child relation.

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
