# \[Solved\] How to uninstall mattermost properly

**URL:** <https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156>\
**Category:** Troubleshooting\
**Created:** [September 20, 2019, 7:27pm UTC](https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156 "2019-09-20T19:27:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marceltyty](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@marceltyty](https://forum.mattermost.com/u/marceltyty)\
**Post date:** [September 20, 2019, 7:27pm UTC](https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156/1 "2019-09-20T19:27:20Z")

</div>

I would like to uninstall mattermost 5.1.0 release on ubuntu server 18.04

I used this command:  
_sudo apt-get purge mattermost_  
system display “unable to locate package mattermost”

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [September 22, 2019, 9:59pm UTC](https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156/2 "2019-09-22T21:59:55Z")

</div>

Hello, @marceltyty

Before we proceed with the steps to uninstall the Mattermost server, can I please check if you followed the steps in the [Installing Mattermost Server](https://docs.mattermost.com/install/install-ubuntu-1804.html#installing-mattermost-server) previously?

While there isn’t any official documentation on this, I would like to know if we can follow the standard steps to uninstall Ubuntu software by referring to the guide below:

- [How to Uninstall Ubuntu Software](https://www.wikihow.com/Uninstall-Ubuntu-Software)

Can you please let me know if the `sudo apt-get --purge remove <program>` command works after you determine the specific name of the Mattermost program? Thanks.

---

<div class="post-metadata">

**Author:** ![marceltyty](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@marceltyty](https://forum.mattermost.com/u/marceltyty)\
**Post date:** [September 23, 2019, 9:05am UTC](https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156/3 "2019-09-23T09:05:33Z")

</div>

Hello,  
I followed the steps in the Installing Mattermost server.  
when i used :dpkg --list command, i could not see mattermost in the list however it is installed in /opt/ directory  
I used the sudo apt-get --purge remove mattermost command on terminal but the message was: unable to locate the package mattermost

---

<div class="post-metadata">

**Author:** ![GOhrner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gohrner/32/5775_2.png) [@GOhrner](https://forum.mattermost.com/u/GOhrner)\
**Post date:** [November 21, 2019, 3:08pm UTC](https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156/4 "2019-11-21T15:08:34Z")

</div>

Mattermost is no DEB package. You did not install it using apt-get or dpkg, and consequently you cannot uninstall it using those tools.

You have to undo the steps to performed when installing it.

---

<div class="post-metadata">

**Author:** ![daytipper1989](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/daytipper1989/32/5016_2.png) [@daytipper1989](https://forum.mattermost.com/u/daytipper1989)\
**Post date:** [August 16, 2021, 12:17pm UTC](https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156/5 "2021-08-16T12:17:44Z")

</div>

try:  
sudo apt-get purge mattermost-desktop

---

<div class="post-metadata">

**Author:** ![flagner.camargo](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@flagner.camargo](https://forum.mattermost.com/u/flagner.camargo)\
**Post date:** [January 27, 2022, 11:52am UTC](https://forum.mattermost.com/t/solved-how-to-uninstall-mattermost-properly/8156/6 "2022-01-27T11:52:08Z")

</div>

Hy guys,

Even though this topic is old and you must have already found the answer, I think the answer can serve for new queries.

You probably installed mattermost using “snap”, so to remove it follow the steps below:

If mattermost was installed by snap it will be in the list:

# sudo snaps list

To remove:

# sudo snap remove mattermost-desktop
