From b41c507cace4bbabf1f3e5a7d2cc52e16c2e336c Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Mon, 15 Jan 2024 16:25:01 +0100 Subject: [PATCH 1/6] Add uninstallation steps --- .../ROOT/pages/installation/linux/debian.adoc | 13 ++++++++ .../ROOT/pages/installation/linux/rpm.adoc | 14 +++++++++ .../pages/installation/linux/tarball.adoc | 14 +++++++++ modules/ROOT/pages/installation/osx.adoc | 10 +++++++ modules/ROOT/pages/installation/windows.adoc | 30 +++++++++++++++++++ 5 files changed, 81 insertions(+) diff --git a/modules/ROOT/pages/installation/linux/debian.adoc b/modules/ROOT/pages/installation/linux/debian.adoc index 438b141cd..edb2ad77a 100644 --- a/modules/ROOT/pages/installation/linux/debian.adoc +++ b/modules/ROOT/pages/installation/linux/debian.adoc @@ -295,3 +295,16 @@ 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 + +In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. + +Follow these steps to uninstall Neo4j on Linux from a tarball: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Use the preferred package manager and write: +[source] +--- +sudo dpkg -r 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..20f2ddb86 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -259,3 +259,17 @@ 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 + +In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. + +Follow these steps to uninstall Neo4j: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Use the preferred package manager and write: + +[source] +--- +yum remove +--- \ 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..cb0f25533 100644 --- a/modules/ROOT/pages/installation/linux/tarball.adoc +++ b/modules/ROOT/pages/installation/linux/tarball.adoc @@ -197,3 +197,17 @@ sudo systemctl daemon-reload ---- . Reboot your machine. + +== Uninstall Neo4j + +In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. + +Follow these steps to uninstall Neo4j on Linux: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Using the preferred package manager, write: + +[source] +--- +rm -rf +--- \ No newline at end of file diff --git a/modules/ROOT/pages/installation/osx.adoc b/modules/ROOT/pages/installation/osx.adoc index 210d92f71..1aa5f345f 100644 --- a/modules/ROOT/pages/installation/osx.adoc +++ b/modules/ROOT/pages/installation/osx.adoc @@ -66,3 +66,13 @@ 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 + +In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. + +Here are the steps to uninstall Neo4j on macOS: + +. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. +. Delete the _Neo4j Desktop.app_ from the Applications folder. +. Delete the _~/Library/Application Support/Neo4j Desktop_ and _~/.neo4j_ folders. \ No newline at end of file diff --git a/modules/ROOT/pages/installation/windows.adoc b/modules/ROOT/pages/installation/windows.adoc index 3393e5b2a..2be4fb53e 100644 --- a/modules/ROOT/pages/installation/windows.adoc +++ b/modules/ROOT/pages/installation/windows.adoc @@ -227,3 +227,33 @@ Invoke-Neo4jAdmin === Common PowerShell parameters The module commands support the common PowerShell parameter of `Verbose`. + +== Uninstall Neo4j + +In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. + +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. +. If you have Neo4j Desktop installed, uninstall it via _Control Panel -> Programs_. +. Make sure the folder _\Program Files\Neo4j Desktop_ no longer exists. +. Delete all files in _\%USERPROFILE%.Neo4jDesktop_. +. In a command window, write: +[source, shell] +--- +powershell +(get-host).version +exit +--- ++ +[NOTE] +==== +Make sure that your system PATH includes `\windows\system32\wbem :` and that you have Powershell installed. +==== +. In a command window, write: +[source, shell] +--- +echo %PATH% +--- +. Restart your system. \ No newline at end of file From 92748d51d80a4504b23bf9699a18d0402b97cf88 Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Tue, 16 Jan 2024 14:29:33 +0100 Subject: [PATCH 2/6] Update after review --- .../ROOT/pages/installation/linux/debian.adoc | 4 ++-- .../ROOT/pages/installation/linux/rpm.adoc | 2 +- .../pages/installation/linux/tarball.adoc | 12 ++++++++--- modules/ROOT/pages/installation/osx.adoc | 14 +++++++++++-- modules/ROOT/pages/installation/windows.adoc | 20 ++----------------- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/modules/ROOT/pages/installation/linux/debian.adoc b/modules/ROOT/pages/installation/linux/debian.adoc index edb2ad77a..eff580686 100644 --- a/modules/ROOT/pages/installation/linux/debian.adoc +++ b/modules/ROOT/pages/installation/linux/debian.adoc @@ -300,11 +300,11 @@ For more information on operating the Neo4j system service, see xref:installatio In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. -Follow these steps to uninstall Neo4j on Linux from a tarball: +Follow these steps to uninstall Neo4j: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. . Use the preferred package manager and write: [source] --- -sudo dpkg -r neo4j +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 20f2ddb86..9fdd2a324 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -271,5 +271,5 @@ Follow these steps to uninstall Neo4j: [source] --- -yum remove +sudo yum 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 cb0f25533..abc4d64eb 100644 --- a/modules/ROOT/pages/installation/linux/tarball.adoc +++ b/modules/ROOT/pages/installation/linux/tarball.adoc @@ -205,9 +205,15 @@ In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.co Follow these steps to uninstall Neo4j on Linux: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. -. Using the preferred package manager, write: - +. Stop all Neo4j running services. +[source] +--- +sudo systemctl stop neo4j +sudo systemctl disable neo4j +--- +. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_ [source] --- -rm -rf +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 1aa5f345f..3dbc3ffaf 100644 --- a/modules/ROOT/pages/installation/osx.adoc +++ b/modules/ROOT/pages/installation/osx.adoc @@ -74,5 +74,15 @@ In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.co Here are the steps to uninstall Neo4j on macOS: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. -. Delete the _Neo4j Desktop.app_ from the Applications folder. -. Delete the _~/Library/Application Support/Neo4j Desktop_ and _~/.neo4j_ folders. \ No newline at end of file +. Stop all Neo4j running services. +[source] +--- +sudo systemctl stop neo4j +sudo systemctl disable neo4j +--- +. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_ +[source] +--- +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 2be4fb53e..396a34e2c 100644 --- a/modules/ROOT/pages/installation/windows.adoc +++ b/modules/ROOT/pages/installation/windows.adoc @@ -236,24 +236,8 @@ 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. -. If you have Neo4j Desktop installed, uninstall it via _Control Panel -> Programs_. -. Make sure the folder _\Program Files\Neo4j Desktop_ no longer exists. -. Delete all files in _\%USERPROFILE%.Neo4jDesktop_. . In a command window, write: [source, shell] --- -powershell -(get-host).version -exit ---- -+ -[NOTE] -==== -Make sure that your system PATH includes `\windows\system32\wbem :` and that you have Powershell installed. -==== -. In a command window, write: -[source, shell] ---- -echo %PATH% ---- -. Restart your system. \ No newline at end of file +bin\neo4j windows-service uninstall +--- \ No newline at end of file From e05e2e3c9c25942843f0c1d9552771b3bd895a6f Mon Sep 17 00:00:00 2001 From: Lidia Zuin <102308961+lidiazuin@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:07:38 +0100 Subject: [PATCH 3/6] Apply suggestions from code review Co-authored-by: Reneta Popova --- modules/ROOT/pages/installation/linux/debian.adoc | 6 +++--- modules/ROOT/pages/installation/linux/rpm.adoc | 7 +++---- modules/ROOT/pages/installation/linux/tarball.adoc | 9 +++++---- modules/ROOT/pages/installation/osx.adoc | 11 ++++++----- modules/ROOT/pages/installation/windows.adoc | 4 ++-- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/modules/ROOT/pages/installation/linux/debian.adoc b/modules/ROOT/pages/installation/linux/debian.adoc index eff580686..b94f90ba0 100644 --- a/modules/ROOT/pages/installation/linux/debian.adoc +++ b/modules/ROOT/pages/installation/linux/debian.adoc @@ -298,13 +298,13 @@ For more information on operating the Neo4j system service, see xref:installatio == Uninstall Neo4j -In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. Follow these steps to uninstall Neo4j: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. -. Use the preferred package manager and write: -[source] +. 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 9fdd2a324..e243be5d9 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -262,14 +262,13 @@ For more information on operating the Neo4j system service, see xref:installatio == Uninstall Neo4j -In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. Follow these steps to uninstall Neo4j: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. -. Use the preferred package manager and write: - -[source] +. Uninstall Neo4j: ++ +[source, shell] --- sudo yum 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 abc4d64eb..448b73680 100644 --- a/modules/ROOT/pages/installation/linux/tarball.adoc +++ b/modules/ROOT/pages/installation/linux/tarball.adoc @@ -200,19 +200,20 @@ sudo systemctl daemon-reload == Uninstall Neo4j -In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. 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. +. Stop all Neo4j running services: ++ [source] --- sudo systemctl stop neo4j sudo systemctl disable neo4j --- -. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_ -[source] +. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_: ++ +[source, shell] --- rm /lib/systemd/system/neo4j.service rm -rf NEO4J_HOME diff --git a/modules/ROOT/pages/installation/osx.adoc b/modules/ROOT/pages/installation/osx.adoc index 3dbc3ffaf..4a03cdfee 100644 --- a/modules/ROOT/pages/installation/osx.adoc +++ b/modules/ROOT/pages/installation/osx.adoc @@ -69,19 +69,20 @@ On all other operating systems, you should always leave the `MaxFDLimit` JVM set == Uninstall Neo4j -In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. 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] +. 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] +. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_: ++ +[source, shell] --- rm /lib/systemd/system/neo4j.service rm -rf NEO4J_HOME diff --git a/modules/ROOT/pages/installation/windows.adoc b/modules/ROOT/pages/installation/windows.adoc index 396a34e2c..392e7b0c8 100644 --- a/modules/ROOT/pages/installation/windows.adoc +++ b/modules/ROOT/pages/installation/windows.adoc @@ -230,13 +230,13 @@ The module commands support the common PowerShell parameter of `Verbose`. == Uninstall Neo4j -In case you want to specifically remove Neo4j Desktop, refer to https://neo4j.com/docs/desktop-manual/current/troubleshooting/re-install/[Neo4j Desktop -> Re-installation of Desktop]. 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. -. In a command window, write: +. Uninstall the Neo4j Windows service: ++ [source, shell] --- bin\neo4j windows-service uninstall From 58a04bf47bd2555ed4414e497457b462fcecf9ef Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Fri, 19 Jan 2024 13:10:23 +0100 Subject: [PATCH 4/6] updates after review --- modules/ROOT/pages/installation/linux/debian.adoc | 1 - modules/ROOT/pages/installation/linux/rpm.adoc | 1 - modules/ROOT/pages/installation/linux/systemd.adoc | 12 ++++++++++++ modules/ROOT/pages/installation/linux/tarball.adoc | 1 - modules/ROOT/pages/installation/osx.adoc | 1 - modules/ROOT/pages/installation/windows.adoc | 1 - 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/ROOT/pages/installation/linux/debian.adoc b/modules/ROOT/pages/installation/linux/debian.adoc index b94f90ba0..60e57e3fa 100644 --- a/modules/ROOT/pages/installation/linux/debian.adoc +++ b/modules/ROOT/pages/installation/linux/debian.adoc @@ -298,7 +298,6 @@ For more information on operating the Neo4j system service, see xref:installatio == Uninstall Neo4j - Follow these steps to uninstall Neo4j: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. diff --git a/modules/ROOT/pages/installation/linux/rpm.adoc b/modules/ROOT/pages/installation/linux/rpm.adoc index e243be5d9..1b21dc9d7 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -262,7 +262,6 @@ For more information on operating the Neo4j system service, see xref:installatio == Uninstall Neo4j - Follow these steps to uninstall Neo4j: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. 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 448b73680..a06545ae5 100644 --- a/modules/ROOT/pages/installation/linux/tarball.adoc +++ b/modules/ROOT/pages/installation/linux/tarball.adoc @@ -200,7 +200,6 @@ sudo systemctl daemon-reload == Uninstall Neo4j - Follow these steps to uninstall Neo4j on Linux: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. diff --git a/modules/ROOT/pages/installation/osx.adoc b/modules/ROOT/pages/installation/osx.adoc index 4a03cdfee..9ed488999 100644 --- a/modules/ROOT/pages/installation/osx.adoc +++ b/modules/ROOT/pages/installation/osx.adoc @@ -69,7 +69,6 @@ On all other operating systems, you should always leave the `MaxFDLimit` JVM set == 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. diff --git a/modules/ROOT/pages/installation/windows.adoc b/modules/ROOT/pages/installation/windows.adoc index 392e7b0c8..fe91c229f 100644 --- a/modules/ROOT/pages/installation/windows.adoc +++ b/modules/ROOT/pages/installation/windows.adoc @@ -230,7 +230,6 @@ 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. From 73af294d6ba8057aecee730a01e294a1fda433a1 Mon Sep 17 00:00:00 2001 From: Lidia Zuin <102308961+lidiazuin@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:10:50 +0100 Subject: [PATCH 5/6] Apply suggestions from code review Co-authored-by: Reneta Popova --- modules/ROOT/pages/installation/linux/tarball.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/installation/linux/tarball.adoc b/modules/ROOT/pages/installation/linux/tarball.adoc index a06545ae5..3b5ee70a3 100644 --- a/modules/ROOT/pages/installation/linux/tarball.adoc +++ b/modules/ROOT/pages/installation/linux/tarball.adoc @@ -205,7 +205,7 @@ 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] +[source, shell] --- sudo systemctl stop neo4j sudo systemctl disable neo4j From 6f769fcc6c296ba4211af787d4c73deb1e106048 Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Fri, 19 Jan 2024 14:03:16 +0100 Subject: [PATCH 6/6] Adding step to delete neo4j home on windows --- modules/ROOT/pages/installation/windows.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/ROOT/pages/installation/windows.adoc b/modules/ROOT/pages/installation/windows.adoc index fe91c229f..cae57ceb0 100644 --- a/modules/ROOT/pages/installation/windows.adoc +++ b/modules/ROOT/pages/installation/windows.adoc @@ -239,4 +239,10 @@ Here are the steps to uninstall Neo4j on Windows: [source, shell] --- bin\neo4j windows-service uninstall +--- +. Delete _NEO4J_HOME_: ++ +[source, shell] +--- +rmdir NEO4J_HOME --- \ No newline at end of file