ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > REST Web Services Supported by WS EMS > RemoveEdgeThing
  
RemoveEdgeThing
The RemoveEdgeThing service removes the specified device from the set of devices that are connected to the WS EMS. In addition, it removes the device from the list of devices that should bind automatically when the WS EMS contacts the ThingWorx platform.
Inputs
You pass in an infotable that contains the name of the thing that you want to remove from the WS EMS:
TW_INFOTABLE, that contains the name of the thing to remove. The infotable can be passed in as raw json. For example, {"name" : "ThingName"}
* 
If the removal is permanent, make sure that you also delete the thing on the ThingWorx platform side.
Outputs
This service returns an HTTP response only. If the operation was successful, it returns HTTP 200. Otherwise, it returns an HTTP error.
Here is an example of a REST call that deletes an Edge thing from the list of devices that should bind automatically when the WS EMS contacts the ThingWorx platform:
http://localhost:8000/Thingworx/Things/LocalEms/Services/
RemoveEdgeThing{"name" : "acmeEdgeThing1"}