Skip to content

Commit 0ba2541

Browse files
Add uninstallation steps (#1331) (#1341)
Cherry-picked from #1331 Co-authored-by: Reneta Popova <[email protected]>
1 parent 90f0b66 commit 0ba2541

File tree

6 files changed

+95
-0
lines changed

6 files changed

+95
-0
lines changed

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

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

297297
For more information on operating the Neo4j system service, see xref:installation/linux/systemd.adoc[Neo4j system service].
298+
299+
== Uninstall Neo4j
300+
301+
Follow these steps to uninstall Neo4j:
302+
303+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
304+
. Uninstall Neo4j:
305+
+
306+
[source, shell]
307+
---
308+
sudo apt remove neo4j
309+
---

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

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

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

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

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

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

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,23 @@ sudo systemctl daemon-reload
197197
----
198198

199199
. Reboot your machine.
200+
201+
== Uninstall Neo4j
202+
203+
Follow these steps to uninstall Neo4j on Linux:
204+
205+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
206+
. Stop all Neo4j running services:
207+
+
208+
[source, shell]
209+
---
210+
sudo systemctl stop neo4j
211+
sudo systemctl disable neo4j
212+
---
213+
. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_:
214+
+
215+
[source, shell]
216+
---
217+
rm /lib/systemd/system/neo4j.service
218+
rm -rf NEO4J_HOME
219+
---

modules/ROOT/pages/installation/osx.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,23 @@ server.jvm.additional=-XX:-MaxFDLimit
6666
Without this setting, the file descriptor limit for the JVM will not be increased beyond 10240.
6767
Note, however, that this only applies to macOS.
6868
On all other operating systems, you should always leave the `MaxFDLimit` JVM setting enabled.
69+
70+
== Uninstall Neo4j
71+
72+
Here are the steps to uninstall Neo4j on macOS:
73+
74+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
75+
. Stop all Neo4j running services:
76+
+
77+
[source, shell]
78+
---
79+
sudo systemctl stop neo4j
80+
sudo systemctl disable neo4j
81+
---
82+
. Delete _NEO4J_HOME_ and the file _/lib/systemd/system/neo4j.service_:
83+
+
84+
[source, shell]
85+
---
86+
rm /lib/systemd/system/neo4j.service
87+
rm -rf NEO4J_HOME
88+
---

modules/ROOT/pages/installation/windows.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,22 @@ Invoke-Neo4jAdmin
227227
=== Common PowerShell parameters
228228

229229
The module commands support the common PowerShell parameter of `Verbose`.
230+
231+
== Uninstall Neo4j
232+
233+
Here are the steps to uninstall Neo4j on Windows:
234+
235+
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
236+
. Stop all Neo4j processes by using the Task Manager.
237+
. Uninstall the Neo4j Windows service:
238+
+
239+
[source, shell]
240+
---
241+
bin\neo4j windows-service uninstall
242+
---
243+
. Delete _NEO4J_HOME_:
244+
+
245+
[source, shell]
246+
---
247+
rmdir NEO4J_HOME
248+
---

0 commit comments

Comments
 (0)