Skip to content

Commit e01f6b7

Browse files
Merge pull request #12427 from nextcloud/docs/noid/uninstallation-pointers
Add generic uninstallation pointers
2 parents d1a91c9 + 69ce4b8 commit e01f6b7

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

admin_manual/installation/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ Installation and server configuration
1919
example_ubuntu
2020
example_centos
2121
example_openbsd
22+
23+
uninstallation
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
==============
2+
Uninstallation
3+
==============
4+
5+
The application is stored in a server directory and works with a database to store the metadata for files and their shares (EFSS functionality).
6+
7+
There are no general uninstallation instructions, as Nextcloud offers a high degree of flexibility with regard to the operating model or operating platform; examples include abstract containers, virtual machines or “bare metal”, i.e. installation directly on one or more servers.
8+
9+
It is therefore important for the uninstallation to understand where the Nextcloud application is installed and where the corresponding data is located.
10+
11+
- Application directory (created before installation)
12+
- File storage of the users (configured within the application directory or outside)
13+
- Metadata storage in the database (within the application directory when using SQLite or outside on the same or another server)
14+
- Caching via Redis server or similar (if used)
15+
16+
For uninstallation, a decision must be made as to whether the file storage should be backed up or whether the data should also be deleted. In addition, either the corresponding servers must be completely deprovisioned or the application directory deleted, as well as the database schemas and Redis entries, depending on the deployment scenario. If dedicated containers or virtual machines are used, these must be deprovisioned and the Nextcloud application must also be deprovisioned.
17+
18+
To uninstall, you can read values from your configuration in ``config`` directory. Check:
19+
20+
- Source code (manually installed, usually in ``/var/www`` or ``/opt/nextcloud``): remove the directory on all servers
21+
- Database (related configuration keys: ``dbtype``, ``dbhost``): remove the corresponding database on all your database servers (you may want to make a backup first)
22+
- Cache (related configuration keys: ``memcache.*``): if persistent, remove the corresponding database or key from all cache servers
23+
- Data (related configuration keys: ``datadirectory``): delete the directory on all servers (you may need to create a backup beforehand). Nextcloud has the option to store data in different locations. Also check external storage and objectstore
24+
- Logs (related configuration keys: ``logfile``, ``logfile_audit``): normally in the data directory, but can also be in another location such as ``/var/log/``

0 commit comments

Comments
 (0)