Occ commands for removing trusted hosts

sudo nextcloud.occ config:system:set trusted_domains X --value=10.1.85.219

Is adding 10.1.85.219 to the trusted hosts.
But, how to remove the existing entries.
Because, when I type below command, it is showing old entries, which we want to remove.
sudo nextcloud.occ config:system:get trusted_domains

I tried editing, /snap/nextcloud/18204/htdocs/config/config.php or /var/www/nextcloud/config/config.php
But no entries related to these recorded there.

And also, these files are shown as redonly.

You can remove entries with:

sudo nextcloud.occ config:system:delete trusted_domains X

Where X is the according number from the relevant configuration, which can be found under folder /var/snap/nextcloud/current/.

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.