On Glitch, projects that are created for free are limited to 200MB of disk space. Boosted Apps can use up to 400MB of disk space. When a project gets close to hitting the limit, you will see a red Error warning in the App Stats within the project editor. You may also not be able to get changes you have made to your project to stick.
If you can access the Project Editor, you can free up disk space by:
- Removing any unused or unnecessary files from your project.
- Adding any database files to the
.data
folder to save space and keep them secure. - Adding other files that are taking up too much space to
.gitignore
. Project files that take up alot of space are usually ones that your project rewrites often.
💡 You can see a list of your project files and their file size by opening the project terminal and entering the command,ls -lah
💡 To move a file to .gitignore or .data, you will need to rename the file to include the folder in its filepath. For example.data/filename.db
- Once you have added larger files to
.gitignore
or.data
run the following commands in the project terminal:
git prune
git gc
refresh
Here's more info about those commands and how they work:
git prune
identifies orphaned git objects to be removed.git gc
is the parent command ofgit prune
with the "gc" standing for "garbage collection". Running this command will delete orphaned git objects and other unused project elements that are taking up your valuable disk space!
If your project has been suspended or you can no longer use the project editor, please send a message to support@glitch.com so we can help you out. Be sure to include the project name.
You can read more about our technical restrictions by clicking here.