---
title: "Delete a Directory"
method: DELETE
path: "/v2/directories/{directoryId}"
tags: ["Kong Identity Directories"]
---

# Delete a Directory

`DELETE /v2/directories/{directoryId}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v2/directories/{directoryId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Deletes a directory and optionally all its associated resources (principals, keys, etc.).
Use the force parameter to control deletion behavior when dependencies exist.

## Path parameters

- `directoryId` string, uuid, required

## Query parameters

- `force` 'true' | 'false'

## Response `204`

Success

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-11-05** `f018071a4515`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v2/directories/:directoryId/delete.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea?raw)
