# How do i delete user account/ mailbox on self installed ChatMail server?

**URL:** <https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654>\
**Category:** Uncategorized\
**Created:** [March 25, 2025, 10:59am UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654 "2025-03-25T10:59:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddy](https://forum.delta.chat/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@Freddy](https://forum.delta.chat/u/Freddy)\
**Post date:** [March 25, 2025, 10:59am UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654/1 "2025-03-25T10:59:20Z")

</div>

Hello, i’m trying to delete user account and mailbox on my ChatMail server. Deleting folder named after user email in /home/vmail/mail/domain/ does nothing, the folder is recreated automatically after deletion. Doveadm mailbox delete command get’s an error: can’t delete mailbox Mailbox doesn’t exist. How can i delete the particular account and it’s mailbox?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [March 25, 2025, 4:18pm UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654/2 "2025-03-25T16:18:24Z")

</div>

> [@Freddy](#):
>
> Deleting folder named after user email in /home/vmail/mail/domain/ does nothing, the folder is recreated automatically after deletion.

This means the user logs in, in this case the folder is created. You need to remove the profile from all the devices first.

Or do you want to delete someone else’s account and lock them out?

---

<div class="post-metadata">

**Author:** ![Freddy](https://forum.delta.chat/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@Freddy](https://forum.delta.chat/u/Freddy)\
**Post date:** [March 26, 2025, 9:16am UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654/3 "2025-03-26T09:16:28Z")

</div>

Hello, thanks for your answer. I am trying to delete account of another person and remove the mailbox and account from the server.

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [March 26, 2025, 5:31pm UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654/4 "2025-03-26T17:31:12Z")

</div>

If they want their account to be deleted, they can simply remove it from Delta Chat and it will be automatically deleted `delete_inactive_users` (90 by default) number of days.

If you want to prevent someone from recreating an account, you can create an `/etc/chatmail-nocreate` file as described in the [README](https://github.com/chatmail/server/blob/main/README.md) and then delete an account. This will prevent anyone from creating an account.

As a last resort you can take over an account by keeping the folder, but changing the password file with a password hash inside. This is not really a supported way though and the account will be deleted as inactive eventually. It will not look good to other users that admin takes over user accounts who have not agreed to it.

---

<div class="post-metadata">

**Author:** ![Freddy](https://forum.delta.chat/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@Freddy](https://forum.delta.chat/u/Freddy)\
**Post date:** [March 27, 2025, 8:28am UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654/5 "2025-03-27T08:28:51Z")

</div>

Thank you very much! We plan to use our server as a company chat and need to have a way to remove leavers in case they not remove their Delta Chat application.

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [March 27, 2025, 2:54pm UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654/6 "2025-03-27T14:54:17Z")

</div>

We also have a guide for installing mailcow that might be more suitable for a company server as it can have manual account management and the ability to create invite link: [https://delta.chat/serverguide](https://delta.chat/serverguide)  
It may be a bit more difficult to setup and does not have FCM/APNS notifications, however.  
Repurposing chatmail a bit to have more manual account management might actually work better.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:19pm UTC](https://forum.delta.chat/t/how-do-i-delete-user-account-mailbox-on-self-installed-chatmail-server/3654/7 "2026-10-06T15:19:47Z")

</div>


