# 无法在 Ubuntu 18.04 上卸载

**URL:** https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770
**Category:** Self-hosting
**Created:** [2020 年5 月 17 日 21:01 UTC](https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770 "2020-05-17T21:01:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### 作者： ![online\_0227](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/online_0227/32/148592_2.png) [@online\_0227](https://meta.discourse.org/u/online_0227)
#### 发布日期： [2020 年5 月 17 日 21:01 UTC](https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770/1 "2020-05-17T21:01:08Z")

</div>

我按照这里的指南操作：

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

现在我想将其连同数据库一起移除，并可能重新安装以获得一个干净的版本。

像这样的命令：  
. /launcher stop app

它没有起作用。

这是 Discourse 的文件结构：

 ![](https://global.discourse-cdn.com/meta/original/3X/9/6/96465619890bd5847f39b646e8ee1883e52c423c.png)

---

<div class="post-metadata">

### 作者： ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### 发布日期： [2020 年5 月 17 日 21:07 UTC](https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770/2 "2020-05-17T21:07:12Z")

</div>

我可能说错了，但你是将 Discourse 安装到了裸机上，而命令

```plaintext
./launcher stop app

```

是用于使用 [launcher](https://github.com/discourse/discourse_docker/blob/master/launcher) 命令的 Docker 容器的。

由于你没有按照 [Docker 安装说明](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009) 进行安装，因此不存在 launcher 命令。

---

<div class="post-metadata">

### 作者： ![online\_0227](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/online_0227/32/148592_2.png) [@online\_0227](https://meta.discourse.org/u/online_0227)
#### 发布日期： [2020 年5 月 17 日 21:09 UTC](https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770/3 "2020-05-17T21:09:41Z")

</div>

那么，我可以直接删除该文件夹，然后重新初始化 PostgreSQL 数据库以重置 Discourse 吗？  
如果可以，该如何重置 PostgreSQL？

谢谢。

---

<div class="post-metadata">

### 作者： ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### 发布日期： [2020 年5 月 17 日 21:11 UTC](https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770/4 "2020-05-17T21:11:44Z")

</div>

> [@online\_0227](#):
>
> 那么我可以直接删除那个文件夹，然后可能初始化 PostgreSQL 数据库来重置 Discourse 吗？  
> 如果可以，我该如何重置 PostgreSQL？

我无法回答这个问题，因为我在几天前才使用 Windows 10 上的 WSL 2 创建了第一个 Discourse 开发主机，并且尚未尝试过删除它。我计划将其删除并重新按照说明操作，以确认这并非只是新手运气。
