To do this you can use the following steps:
- List the usb devices
- Find your device
- Turn off the network interface
- Disable the usb wifi adapter
- Check if it disappears
- Check kernel messages:
root@debian:~# lsusb Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 002 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 002 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
root@debian:~# cat /sys/bus/usb/devices/2-1.4/idProduct 8176
root@debian:~# ifconfig wlan6 down
root@debian:~# echo 1> /sys/bus/usb/devices/2-1.4/remove
root@debian:~# lsusb Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 002 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
root@debian:~# dmesg | tail -n 2 [ 4229.480000] usb 2-1.4: reset high speed USB device number 4 using sw-ehci [ 4229.600000] usb 2-1.4: USB disconnect, device number 4
*** UPDATE ***
Fast way to find and remove the device:root@debian:~# find /sys/ | grep wlan6 | grep dev_id | cut -d'/' -f -8 /sys/devices/platform/sw-ehci.1/usb2/2-1/2-1.4 root@debian:~# echo "1" > /sys/devices/platform/sw-ehci.1/usb2/2-1/2-1.4/remove