Project

General

Profile

Actions

Resolving Shared Folder Issues in Nextcloud » History » Revision 1

Revision 1/3 | Next »
Gareth Eaton, 12/21/2023 02:21 PM


Resolving Shared Folder Issues in Nextcloud

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.

Change Directory to the Nextcloud Installation:
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:

cd /var/www/html/nextcloud

Replace "/var/www/html/nextcloud" with the actual path to your Nextcloud installation.

Run Nextcloud Command-Line Tools:
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:

To trigger a files scan to refresh the file list:

sudo -u www-data php occ files:scan --all

To list shares:

sudo -u www-data php occ sharing:list

To delete a share by its ID:

sudo -u www-data php occ sharing:delete <share_id>

Remember to replace <share_id> with the actual share ID you want to delete.

Updated by Gareth Eaton 11 months ago · 1 revisions