Accidentally deleted my wifi device wlan0
To undo deletion of wlan0, you can recreate it like so:
iw phy phy0 interface add wlan0 type managed
This is much faster than rebooting and more reliable than restarting network-manager.
Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.