Uninstalling and Removing ATV Flash

Searched and can’t find anything on this topic - how does one perform a factory restore to uninstall the jailbreak and flash programming?  When I try to restore, it can’t download info from Apple but I see no settings to enable this.