This is a snippet from a Powershell script I use that includes API calls to delete the device from the webUI and uninstall from Windows device.

 

Start-Process "Uninstall.bat" -WorkingDirectory "C:\Program Files (x86)\SOTI\MobiControl\"

 

You can also just run the Uninstall.bat from cmd in the MobiControl directory.