RFKILL is a handy tool to hard disable wireless and bluetooth from Raspbian devices like a pi. Unlike other command line tools, this is persistant meaning that it will survive reboots until it is unblocked.
sudo rfkill block wifi
sudo rfkill block bluetooth
to undo…
sudo rfkill unblock wifi
sudo rfkill unblock bluetooth