Freeing up storage

I recently had a memory issue and support provided the following LUA to run in the test window:

os.execute("rm -rf /overlay/etc/cmh/ergy*") 
os.execute("rm /etc/cmh/ergy_cache*")
os.execute("rm -r /overlay/etc/mios_backup.info.old")
os.execute("rm -rf /overlay/etc/cmh-firmware/mios*") 
os.execute("rm -r /overlay/etc/cmh/alerts.json")
os.execute("rm -rf /www/dm/")
os.execute("rm -rf /overlay/dataMine/") 
os.execute("rm -r /overlay/etc/cmh-zwfw/z*")
os.execute("rm -rf /overlay/etc/cmh-firmware/*")
os.execute("reboot")

I had datamine2 eat up a bunch of space while using wi-fi on a Plus. Bad combination. My root cleaned up nicely:

Filesystem                Size      Used    Available Use% Mounted on
rootfs                    8.6M      5.4M      3.2M      63%        /

Hi phillid2 This code does not work; copy paste it into develop apps - test Luup code. But I get an error.

Almost definitely, the problem is with the double quote which have been converted to inverted commas, in the posted code you copied.

I’ll fix the formatting in that post and you can try again.

Thanks for fixing, Akbooer. I also copied and pasted the text into a text file but this platform would not allow it to be uploaded. So attached it as a pdf. You should be able to grab the text from it using Adobe Reader. More options.Clean up memory.pdf (14.5 KB)

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy