Delete Task by URL request

Hello everybody,

because schedules will be deleted automatically after some time, we like to delete some tasks by the device id. Get information by target id works fine:

GET https://my.devicecloud.com/ws/Task/.json?condition=tskTargets=‘00001337-00000000-00000000-00XXXX42’
– response –
200 OK

Now we like to delete the device:

DELETE https://my.devicecloud.com/ws/Task/?condition=tskTargets=‘00001337-00000000-00000000-00XXXX42’
– response –
500 Internal Server Error

According to your documentation ( http://www.digi.com/resources/documentation/digidocs/90002008/reference/r_ws_task.htm ) delete isn’t possible (unfortunately, this seems to be outdated). But if you call

DELETE https://my.devicecloud.com/ws/Task/XXXYYZZ
– response –
200 OK

0 items deleted

As you see, no items seems to be deleted. But if you are looking for the device, it has been deleted successfully (so the amount of deleted entries is buggy?):

GET https://my.devicecloud.com/ws/Task/?condition=tskTargets=‘00001337-00000000-00000000-00XXXX42’
– response –
200 OK

0
0
0
1000
0

So how to delete a task properly? We prefer to delete a task directly by the device id. So we don’t have to know the task id or the schedule id.

Best regards,
Yannick