Is there Anyway to Enable/Disable USB Storage Device in Mac?

Hi, I want to enable/disable my USB Storage stick with using MQTT server. I can connect my server, listen and publish some datas.

Is it possible to do change USB status with Swift, in XCode? It should be only change storage device, because i don't want to disconnect my mouse or etc.

Is there Anyway to Enable/Disable USB Storage Device in Mac?
 
 
Q