> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/membership/users/delete.md).

# Delete a user

Delete a user — the person and their logins are removed from the project.

**Where:** Membership → Users → click a name → **Delete** · `/projects/<project>/membership/users/<userId>/edit`

## Before you start

* You need the `membership:delete` permission on users.
* Deleting cannot be undone. If you only want to stop the person signing in, block the login from code instead ([Block User](/codemash/api-reference/membership/users/block-user.md)).

## Steps

1. In **Users**, click the name, for example `Temp user`.
2. Press **Delete** at the top right. The dialog **Delete Confirmation** asks *Are you sure you want to delete this user?*

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-109e643ff74d5cfa3b7f9e49bb1de56a818519d7%2Fusers-delete-1.png?alt=media" alt="Dialog Delete Confirmation over the user Temp user: Are you sure you want to delete this user? with Cancel and Delete"><figcaption><p>The confirmation dialog.</p></figcaption></figure>
3. Press **Delete**.

## Result

Cloud goes back to **Users**; the person is gone from the list. A **When deleted** trigger runs, when you have one — see [Create a trigger](/codemash/cloud/membership/triggers/new.md).

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-36bb2862296fc6802c48a203404cc049d2cce948%2Fusers-delete-2.png?alt=media" alt="Users list without Temp user"><figcaption><p>The list after the delete.</p></figcaption></figure>

## Change or remove it later

* A deleted user cannot be brought back. Add the person again — [Add a user](/codemash/cloud/membership/users/new.md).

## Do it from code

```ts
await norbix.hub.membership.deleteContact({ contactId }); // contactId: ct_…
```

```sh
norbix hub membership contact delete --contactId ct_58zZpNCCL4f8rPDUCkULrI --yes
```

The client setup is on the [Membership page](/codemash/cloud/membership.md#use-it-from-code). API: [Delete Contact](/codemash/api-reference/membership/users/delete-contact.md)
