Skip to content

Commit c18b5d5

Browse files
Add uninstallation steps (neo4j#1331) (neo4j#1345)
Cherry-picked from neo4j#1331 Co-authored-by: Reneta Popova <[email protected]>
1 parent 8377eb6 commit c18b5d5

File tree

6 files changed

+97
-2
lines changed

6 files changed

+97
-2
lines changed

modules/ROOT/pages/installation/linux/debian.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,3 +261,15 @@ For more information, see xref:configuration/set-initial-password.adoc[].
261261
====
262262

263263
For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service].
264+
265+
== Uninstall Neo4j
266+
267+
Follow these steps to uninstall Neo4j:
268+
269+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
270+
. Uninstall Neo4j:
271+
+
272+
[source, shell]
273+
---
274+
sudo apt remove neo4j
275+
---

modules/ROOT/pages/installation/linux/rpm.adoc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,16 @@ In that case, you will be prompted to change the default password at first login
236236
For more information, see xref:configuration/set-initial-password.adoc[].
237237
====
238238

239-
For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service].
239+
For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service].
240+
241+
== Uninstall Neo4j
242+
243+
Follow these steps to uninstall Neo4j:
244+
245+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
246+
. Uninstall Neo4j:
247+
+
248+
[source, shell]
249+
---
250+
sudo yum remove neo4j
251+
---

modules/ROOT/pages/installation/linux/systemd.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,15 @@ journalctl -e -u neo4j
7575

7676
`journald` automatically rotates the log after a certain time and by default it commonly does not persist across reboots.
7777
Please see `man journald.conf` for further details.
78+
79+
== Uninstall Neo4j
80+
81+
Follow these steps to uninstall Neo4j:
82+
83+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
84+
. Uninstall Neo4j:
85+
+
86+
[source, shell]
87+
---
88+
sudo apt remove neo4j
89+
---

modules/ROOT/pages/installation/linux/tarball.adoc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,24 @@ reboot
107107

108108
For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service].
109109

110-
include::partial$/installation/linux/linux-open-files.adoc[leveloffset=+1]
110+
include::partial$/installation/linux/linux-open-files.adoc[leveloffset=+1]
111+
112+
== Uninstall Neo4j
113+
114+
Follow these steps to uninstall Neo4j on Linux:
115+
116+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
117+
. Stop all Neo4j running services:
118+
+
119+
[source, shell]
120+
---
121+
sudo systemctl stop neo4j
122+
sudo systemctl disable neo4j
123+
---
124+
. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_:
125+
+
126+
[source, shell]
127+
---
128+
rm /lib/systemd/system/neo4j.service
129+
rm -rf NEO4J_HOME
130+
---

modules/ROOT/pages/installation/osx.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,23 @@ dbms.jvm.additional=-XX:-MaxFDLimit
4747
Without this setting, the file descriptor limit for the JVM will not be increased beyond 10240.
4848
Note, however, that this only applies to macOS.
4949
On all other operating systems, you should always leave the `MaxFDLimit` JVM setting enabled.
50+
51+
== Uninstall Neo4j
52+
53+
Here are the steps to uninstall Neo4j on macOS:
54+
55+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
56+
. Stop all Neo4j running services:
57+
+
58+
[source, shell]
59+
---
60+
sudo systemctl stop neo4j
61+
sudo systemctl disable neo4j
62+
---
63+
. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_:
64+
+
65+
[source, shell]
66+
---
67+
rm /lib/systemd/system/neo4j.service
68+
rm -rf NEO4J_HOME
69+
---

modules/ROOT/pages/installation/windows.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,22 @@ bin\neo4j restart
7777

7878

7979
include::partial$/installation/windows/powershell.adoc[leveloffset=+1]
80+
81+
== Uninstall Neo4j
82+
83+
Here are the steps to uninstall Neo4j on Windows:
84+
85+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
86+
. Stop all Neo4j processes by using the Task Manager.
87+
. Uninstall the Neo4j Windows service:
88+
+
89+
[source, shell]
90+
---
91+
bin\neo4j windows-service uninstall
92+
---
93+
. Delete _NEO4J_HOME_:
94+
+
95+
[source, shell]
96+
---
97+
rmdir NEO4J_HOME
98+
---

0 commit comments

Comments
 (0)