I have too much entries in the global context ("file") stored.
I want to delete them by hand in the .node-red/context/global/global.json
with node-red-stop
the memory shoud be flushed to file
with
sudo nala I have deleted the no longer desired items in global.json
save
reopen, and the deleted items are no longer seen
node-red-start
the deleted items are added at the end of the context.json file
in the flows there is no code which manipulates the deleted items
var cDevices = ["81", "82", "83", "84", "85", "86", "87", "88", "89"];
var cTypes=["RAlarmT","RAlarmF","RAlarmQ"];
let dLen = cDevices.length;
let tLen = cTypes.length;
for (var i = 0; i < dLen; i++) {
var cTemp1=cDevices[i].replace(/\s/g, '_');
for (var ix = 0; ix < tLen; ix++) {
var cTemp2=cTypes[ix];
var cToDelete=cTemp1+cTemp2;
node.warn(cToDelete);
global.set(cToDelete,undefined,"file");
}
}
and so on with other Kombinations not nice, but a very dirty solution