diff --git a/docs/setup.md b/docs/setup.md index 11b46995..2e835370 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -242,13 +242,31 @@ docker-compose up --build - See the [khoj plugin setup](/obsidian.md?id=_2-setup-plugin) for details ## Uninstall -1. (Optional) Hit `Ctrl-C` in the terminal running the khoj server to stop it -2. Delete the khoj directory in your home folder (i.e `~/.khoj` on Linux, Mac or `C:\Users\\.khoj` on Windows) -5. You might want to `rm -rf` the following directories: - - `~/.khoj` - - `~/.cache/gpt4all` -3. Uninstall the khoj server with `pip uninstall khoj-assistant` -4. (Optional) Uninstall khoj.el or the khoj obsidian plugin in the standard way on Emacs, Obsidian +### Uninstall Khoj Server + + + +#### **Local** + +```shell +# uninstall khoj server +pip uninstall khoj-assistant + +# delete khoj postgres db +dropdb khoj -U postgres +``` + +#### **Docker** +From the same directory where you have your `docker-compose` file, run the command below to remove the server to delete its containers, networks, images and volumes. + +```shell +docker-compose down --volumes +``` + + + +### Uninstall Khoj Clients +Uninstall the khoj emacs, obsidian or desktop client in the standard way from Emacs, Obsidian or your OS respectively ## Troubleshoot