Node Red help

How would I delete a row in a table (in Node Red) that has this as a function command:

The highlighted bit is my struggle. Cant figure out how to delete that line.

deleteRow(15)

is the formatting, but I need the number 15 to come from msg.payload.deviceId

Could you do this in a function node? Assuming that msg.command and msg.retrunPromise are passed in as arguments into another node, this may work?

msg.command = ‘deleteRow(’+msg.payload.deviceID+’)’;
msg.returnPromise = True;
return msg;

2 Likes