How to remove discourse website

If you want to completely remove discourse:

  1. List you local docker images from the host: docker images
  2. Find the discourse image. It should look something like
    REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
    discourse/discourse   1.3.10              95332d4db04b        5 weeks ago         1.52GB
    
  3. Remove the image: docker image rm discourse/discourse:1.3.10. Remember to use the exact same name and version your docker output showed you.
  4. Remove the location you cloned the discourse. If you followed the installation instructions, it should be /var/discourse, so rm -r /var/discourse should do it.
  5. [optional]. If you don’t need docker anymore, remove it from your machine.