I'm new with magento. I'm accidentally changed Use Custom Admin URL value into Yes and added a custom admin url (which is doesn't exist). Now everytime i tried to access my magento admin it always redirect to that custom admin url and gives error because that URL doesn't exist. I have tried to return it to No and click save but i always get webadmin-sit-ecomm.tbsgroup.co.id’s server IP address could not be found.
Execute this command to revert to the default Admin URL
php bin/magento config:set admin/url/use_custom 0
** Execute this command to revert to the default Admin Path (set in the app/etc/env.php as described in the Method 2)
php bin/magento config:set admin/url/use_custom_path 0
Use one of the following methods to clear the Magento cache:
On the Admin sidebar, go to System > Tools > Cache Management. Then, click Flush Magento Cache. On the server, execute the following:
php bin/magento cache:flush