Hello members,
Please guide on removing previous Discourse install so that I can install the fresh one.
Thanks!!
AI-generated summary
In a self-hosting discussion titled Removing previous Discourse install and installing the fresh one, Systmyz seeks help uninstalling an old Discourse setup to perform a clean reinstall. pfaffman suggests stopping and removing the Docker container and deleting the /var/discourse directory, but Systmyz reports being unable to run ./discourse-setup afterward, with the console showing root@example: .# — indicating a possible shell or directory issue. pfaffman advises cloning Discourse again, but Systmyz encounters errors running sudo -s and git clone, suspecting the server is heavily corrupted. pfaffman recommends deleting the DigitalOcean droplet and starting fresh, or restoring from a snapshot. Systmyz prefers to troubleshoot rather than reset, noting the unusual .# prompt instead of ~#, and asks for clarification on its meaning. After restarting the console, Systmyz is back in /var/discourse# but still can’t clone the repo, encountering permission or directory conflicts. itsbhanusharma ultimately advises reinstalling the VPS from DigitalOcean and following the official 30-minute install guide for a clean start. The thread reflects a common self-hosting challenge: recovering from a broken install without losing the droplet, with community suggestions leaning toward a fresh start for reliability.
Something like
docker stop app
docker rm app
rm -rf /var/discourse
There are some more nuanced approaches, but that should work.
You’ll need to clone discourse again.
I am trying these commands to clone discourse
sudo -s giving error
Then git clone https://github.com/discourse/discourse_docker.git /var/discourse giving following error
I think something heavily messed up in the server. How can I do the fresh start without deleting the DigitalOcean droplet? Please assist, advance thanks!!
Why not just delete the droplet and start over? That sounds like what you want. You can also restore the droplet to a new image
I have that option but still for the sake of experience, I am trying to solve up the mess. One thing I have figured out in the root access, it is showing .# instead of ~#. What is its significance? Thanks for your assistance @pfaffman
Just reinstall your VPS from digitalocean and start over with the 30 mins install guide.



