Remove custom dns server setting via command line So I typically run the following to set a custom DNS server when I am on WiFi: 

networksetup -setdnsservers Wi-Fi &lt;desired-dns-server-here&gt;


However, I would like to know how to unset custom DNS servers and revert to DHCP provided DNS. This article from 2015 says that running networksetup -setdnsservers Wi-Fi should do this, but on macOS 10.15 that results in ** Error: The amount of parameters was not correct.

Any ideas how this can be done?
Here's a one liner and the thread where I learned this a while back:

sudo networksetup -setdnsservers Wi-Fi "Empty"


After using `networksetup -setdnsservers Wi-Fi &quot;8.8.8.8&quot; &quot;8.8.4.4&quot;` how do I clear them?