I have tried you suggestions, but I'm reaaly not able to clear the array, please see my nodes here:
[{"id":"d394740851723e6d","type":"inject","z":"c733ee6b707eabb8","name":"Test","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":680,"y":930,"wires":[["f3311e99338ebf39"]]},{"id":"f3311e99338ebf39","type":"function","z":"c733ee6b707eabb8","name":"highest_consumption_last_day","func":"flow.set(\"highest_consumption_last_day\", msg.payload)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":990,"wires":[["1c496feef15e7e2a","e174335d8e9cde50"]]},{"id":"e174335d8e9cde50","type":"function","z":"c733ee6b707eabb8","name":"function 17","func":"var myArray = context.get(\"myArray\");\n\nif (!myArray) {\n console.log(\"Set the array on context memory\");\n context.set(\"myArray\", []);\n myArray = context.get(\"myArray\");\n}\n\nmyArray.push(msg.payload);\nmsg.payload = myArray;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1180,"y":940,"wires":[["8c40a6039770b3d2"]]},{"id":"8c40a6039770b3d2","type":"debug","z":"c733ee6b707eabb8","name":"debug 79","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1340,"y":940,"wires":[]},{"id":"4ac84c3d12274325","type":"function","z":"c733ee6b707eabb8","name":"function 18","func":"context.set('myArray', []);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":860,"y":1170,"wires":[["e174335d8e9cde50"]]},{"id":"c06bb7f26bf6d2bd","type":"inject","z":"c733ee6b707eabb8","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"reset","x":680,"y":1170,"wires":[["4ac84c3d12274325"]]}]