---
title: "ezgh sso directory delete"
description: "Delete the directory, with every user, group, application and identity provider in it."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh sso directory delete

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh sso directory delete [flags]
```

Delete the organization's directory. Everyone in it is offboarded at once: every user and group, their sessions and tokens, the applications and their secrets, the identity providers and domains go, and the portal stops answering. Policies attached to directory users and groups are removed. This can't be undone. It asks first, with the alias, on a terminal; `--yes` confirms otherwise.

Part of [`ezgh sso directory`](/cli/reference/sso-directory).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `-y`, `--yes` | boolean |  | don't ask for confirmation |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/sso-directory-delete/index.mdx
