diff --git a/modules/ROOT/pages/installation/linux/debian.adoc b/modules/ROOT/pages/installation/linux/debian.adoc index 438b141cd..60e57e3fa 100644 --- a/modules/ROOT/pages/installation/linux/debian.adoc +++ b/modules/ROOT/pages/installation/linux/debian.adoc @@ -295,3 +295,15 @@ For more information, see xref:configuration/set-initial-password.adoc[]. ==== For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service]. + +== Uninstall Neo4j + +Follow these steps to uninstall Neo4j: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Uninstall Neo4j: ++ +[source, shell] +--- +sudo apt remove neo4j +--- \ No newline at end of file diff --git a/modules/ROOT/pages/installation/linux/rpm.adoc b/modules/ROOT/pages/installation/linux/rpm.adoc index 885638358..1b21dc9d7 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -259,3 +259,15 @@ For more information, see xref:configuration/set-initial-password.adoc[]. ==== For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service]. + +== Uninstall Neo4j + +Follow these steps to uninstall Neo4j: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Uninstall Neo4j: ++ +[source, shell] +--- +sudo yum remove neo4j +--- \ No newline at end of file diff --git a/modules/ROOT/pages/installation/linux/systemd.adoc b/modules/ROOT/pages/installation/linux/systemd.adoc index 032cdb35c..78f3edf1a 100644 --- a/modules/ROOT/pages/installation/linux/systemd.adoc +++ b/modules/ROOT/pages/installation/linux/systemd.adoc @@ -78,3 +78,15 @@ journalctl -e -u neo4j `journald` automatically rotates the log after a certain time and by default it commonly does not persist across reboots. Please see `man journald.conf` for further details. + +== Uninstall Neo4j + +Follow these steps to uninstall Neo4j: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Uninstall Neo4j: ++ +[source, shell] +--- +sudo apt remove neo4j +--- \ No newline at end of file diff --git a/modules/ROOT/pages/installation/linux/tarball.adoc b/modules/ROOT/pages/installation/linux/tarball.adoc index d83651d7c..3b5ee70a3 100644 --- a/modules/ROOT/pages/installation/linux/tarball.adoc +++ b/modules/ROOT/pages/installation/linux/tarball.adoc @@ -197,3 +197,23 @@ sudo systemctl daemon-reload ---- . Reboot your machine. + +== Uninstall Neo4j + +Follow these steps to uninstall Neo4j on Linux: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Stop all Neo4j running services: ++ +[source, shell] +--- +sudo systemctl stop neo4j +sudo systemctl disable neo4j +--- +. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_: ++ +[source, shell] +--- +rm /lib/systemd/system/neo4j.service +rm -rf NEO4J_HOME +--- \ No newline at end of file diff --git a/modules/ROOT/pages/installation/osx.adoc b/modules/ROOT/pages/installation/osx.adoc index 210d92f71..9ed488999 100644 --- a/modules/ROOT/pages/installation/osx.adoc +++ b/modules/ROOT/pages/installation/osx.adoc @@ -66,3 +66,23 @@ server.jvm.additional=-XX:-MaxFDLimit Without this setting, the file descriptor limit for the JVM will not be increased beyond 10240. Note, however, that this only applies to macOS. On all other operating systems, you should always leave the `MaxFDLimit` JVM setting enabled. + +== Uninstall Neo4j + +Here are the steps to uninstall Neo4j on macOS: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Stop all Neo4j running services: ++ +[source, shell] +--- +sudo systemctl stop neo4j +sudo systemctl disable neo4j +--- +. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_: ++ +[source, shell] +--- +rm /lib/systemd/system/neo4j.service +rm -rf NEO4J_HOME +--- \ No newline at end of file diff --git a/modules/ROOT/pages/installation/windows.adoc b/modules/ROOT/pages/installation/windows.adoc index 3393e5b2a..cae57ceb0 100644 --- a/modules/ROOT/pages/installation/windows.adoc +++ b/modules/ROOT/pages/installation/windows.adoc @@ -227,3 +227,22 @@ Invoke-Neo4jAdmin === Common PowerShell parameters The module commands support the common PowerShell parameter of `Verbose`. + +== Uninstall Neo4j + +Here are the steps to uninstall Neo4j on Windows: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Stop all Neo4j processes by using the Task Manager. +. Uninstall the Neo4j Windows service: ++ +[source, shell] +--- +bin\neo4j windows-service uninstall +--- +. Delete _NEO4J_HOME_: ++ +[source, shell] +--- +rmdir NEO4J_HOME +--- \ No newline at end of file