---
title: "ezgh iam users remove"
description: "Remove someone from the organization: their groups and policies go, and their API keys are revoked."
---

> 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 iam users remove

{/* 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 iam users remove <user> [flags]
```

Remove someone from the organization, by user ID or email. Their group memberships and directly attached policies go, and their API keys for the organization are revoked. The root user can't be removed: hand root over in the console first. To leave yourself, `ezgh orgs leave`.

Part of [`ezgh iam users`](/cli/reference/iam-users).

## 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/iam-users-remove/index.mdx
