How to completely uninstall / remove a plugin

I believe the app.yml can be found at /var/discourse/containers/app.yml. You will need to edit that file and remove any references to the plugin. You should be able to locate something similar to the following in the file:

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-jwt.git
          - git clone https://github.com/zh99998/discourse-cross-origin.git

Each of the git clone lines there refers to a plugin installed in the Discourse instance. After editing the file you will need to rebuild your Discourse application. From the /var/discourse folder you can run ./launcher rebuild app to rebuild your Discourse application.

2 Likes