# Error When Deleting User Using mmctl

**URL:** <https://forum.mattermost.com/t/error-when-deleting-user-using-mmctl/10847>\
**Category:** Troubleshooting\
**Created:** [December 3, 2020, 8:45pm UTC](https://forum.mattermost.com/t/error-when-deleting-user-using-mmctl/10847 "2020-12-03T20:45:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GuidoD](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/guidod/32/6715_2.png) [@GuidoD](https://forum.mattermost.com/u/GuidoD)\
**Post date:** [December 4, 2020, 2:14pm UTC](https://forum.mattermost.com/t/error-when-deleting-user-using-mmctl/10847/2 "2020-12-04T14:14:24Z")

</div>

but even when it is set to true, this does only work in a standard installation and not inside a docker container installation with PostgreSQL database:

root@abc:/var/xyz/mattermost# docker-compose exec app sh  
~ $ mmctl user delete u78yrxgftpg89bwijmy6ez98we --confirm --local  
Unable to delete user ‘username’ error: : Konnte die zu löschenden Nachrichten für den Benutzer nicht auswählen.,  
(Could not select the messages for the user to delete)

---

_[View the full topic](https://forum.mattermost.com/t/error-when-deleting-user-using-mmctl/10847)._
