From ecb602e43f4317dc758c254432ed5a2670549178 Mon Sep 17 00:00:00 2001 From: Lidia Zuin <102308961+lidiazuin@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:15:01 +0100 Subject: [PATCH] Add uninstallation steps (#1331) Co-authored-by: Reneta Popova --- .../ROOT/pages/installation/linux/debian.adoc | 12 ++++++++++ .../ROOT/pages/installation/linux/rpm.adoc | 14 +++++++++++- .../pages/installation/linux/systemd.adoc | 12 ++++++++++ .../pages/installation/linux/tarball.adoc | 22 ++++++++++++++++++- modules/ROOT/pages/installation/osx.adoc | 20 +++++++++++++++++ modules/ROOT/pages/installation/windows.adoc | 19 ++++++++++++++++ 6 files changed, 97 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/installation/linux/debian.adoc b/modules/ROOT/pages/installation/linux/debian.adoc index 830369003..090c01cb1 100644 --- a/modules/ROOT/pages/installation/linux/debian.adoc +++ b/modules/ROOT/pages/installation/linux/debian.adoc @@ -261,3 +261,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 aeb34fc35..e158fdb2e 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -231,4 +231,16 @@ In that case, you will be prompted to change the default password at first login 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]. \ No newline at end of file +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 +--- diff --git a/modules/ROOT/pages/installation/linux/systemd.adoc b/modules/ROOT/pages/installation/linux/systemd.adoc index a238c9ba3..464d73d97 100644 --- a/modules/ROOT/pages/installation/linux/systemd.adoc +++ b/modules/ROOT/pages/installation/linux/systemd.adoc @@ -75,3 +75,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 3ce7f1920..1f04b44bc 100644 --- a/modules/ROOT/pages/installation/linux/tarball.adoc +++ b/modules/ROOT/pages/installation/linux/tarball.adoc @@ -107,4 +107,24 @@ reboot For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service]. -include::partial$/installation/linux/linux-open-files.adoc[leveloffset=+1] \ No newline at end of file +include::partial$/installation/linux/linux-open-files.adoc[leveloffset=+1] + +== 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 3bd2bee35..0c6e73caf 100644 --- a/modules/ROOT/pages/installation/osx.adoc +++ b/modules/ROOT/pages/installation/osx.adoc @@ -47,3 +47,23 @@ dbms.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 9b8a59094..4dad8a2ad 100644 --- a/modules/ROOT/pages/installation/windows.adoc +++ b/modules/ROOT/pages/installation/windows.adoc @@ -77,3 +77,22 @@ bin\neo4j restart include::partial$/installation/windows/powershell.adoc[leveloffset=+1] + +== 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