added an endpoint to remove a device