googlediscourse

Uninstall plugins

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.


NOTE: If you connected to the instance via the Google Cloud Console, you will need to change your user to the bitnami user. Insert the following command before executing the steps below: sudo su bitnami

To remove a Discourse plugin, follow these steps:

  • Log in to the server console.

  • Navigate to the Discourse plugins directory. Depending on your installation type, run the commands below:

    • Approach A (Bitnami installations using system packages):

        $ cd /opt/bitnami/discourse/plugins
      
    • Approach B (Self-contained Bitnami installations):

        $ cd /opt/bitnami/apps/discourse/htdocs//plugins
      
  • Execute the following commands, replacing PLUGIN-DIR with the name of the directory containing the plugin you wish to remove:

      $ rm -rf PLUGIN-DIR
      $ sudo RAILS_ENV=production bundle exec rake assets:precompile
    
Last modification June 16, 2021