Project

General

Profile

Resolving Shared Folder Issues in Nextcloud » History » Version 1

Gareth Eaton, 12/21/2023 02:21 PM

1 1 Gareth Eaton
h1. Resolving Shared Folder Issues in Nextcloud
2
3
If a shared folder is no longer available in Nextcloud but still appears for a user and they can't delete it, you can try the following steps to resolve the issue.
4
5
Change Directory to the Nextcloud Installation:
6
Before running any Nextcloud command-line tools, you typically need to navigate to the Nextcloud installation directory. You can do this using the cd command:
7
8
9
<pre>
10
cd /var/www/html/nextcloud
11
</pre>
12
Replace "/var/www/html/nextcloud" with the actual path to your Nextcloud installation.
13
14
Run Nextcloud Command-Line Tools:
15
Once you are in the Nextcloud installation directory, you can run Nextcloud's command-line tools using the appropriate user (usually "www-data" or "www"). For example:
16
17
To trigger a files scan to refresh the file list:
18
19
<pre>
20
sudo -u www-data php occ files:scan --all
21
</pre>
22
23
To list shares:
24
25
<pre>
26
sudo -u www-data php occ sharing:list
27
</pre>
28
29
To delete a share by its ID:
30
31
32
<pre>
33
sudo -u www-data php occ sharing:delete <share_id>
34
</pre>
35
Remember to replace <share_id> with the actual share ID you want to delete.