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.