How to disable WiFi on Yun ?

Please let me know if there's anyway to turn off the Arduino Yun WiFi.
I need to do this under the Arduino IDE with windows 7 (not LINUX).
After trying all suggestions from different posts/forums.
None worked as after 5 minutes the WiFi is enabled again.
None of these suggestions worked:
https://forum.arduino.cc/index.php?topic=189105.0

https://gist.githubusercontent.com/sgk/6641198/raw/c6c36b2c8a9d62036b11335f6515ce3c5ce03ee6/PatchYun.ino

Please advise which forum I can ask this on, etc.
Your advise is greatly appreciated.