Disk keep getting on 78MB

everytime i deleted my “.cache” folder so disk goes on 5MB but once i refresh its back on 78MB

any help?

You could add this to your start script (in package.json/glitch.json):

rm -r /path/to/.cache && node server.js # Or whatever your start script is
1 Like

but i use the .cache folder by packages so how will that work

Well, you could remove unnecessary packages by running: npm un pkg1 pkg2 pkg3
You could also run git prune; git gc and npm cache clear -f to save even more space.

3 Likes