Hi, I had the same issue as you, needing to delete devices. Since they haven’t implemented it, I created my own:
the “process” node has this:
msg.url = ‘http://192.168.0.155:8081’ + msg.command;
if (msg.params != undefined)
{
msg.url = msg.url +‘:’+msg.params;
}
return msg;
the inject node has:
, in the “msg.command” line that will be appended to the ip address, the last part is the serial number of the device to erase.
Sometimes it still reports a device when you call for the device list, even after deleting it, in that case the reply to trying to delete it would be something like “that serial number does not belong to any device”
The last and VERY IMPORTANT thing is that you need to get a Token for your nodes (different from the one got by the ewelink cube nodes) using another http request node:
(I am editing to add that the get token GET command also needs the Header “content-Type” set at “application/json”

and the token you get (after injecting to that node when the iHost is giving tokens) has to be put manually in the http request node you use for deleting, after the word "Bearer "
I hope this helps you, I know it is complicated, but we are manually creating the functionality that they haven’t programmed yet
Of course, wherever you see 192.168.0.155, that is my IP, you need to replace it by yours ![]()



