Issue: “Disk Quota Exceeded”

Symptom: While working on VSC with remote development, suddenly you cannot save your changes or create a new file. Receiving error messages saying “Disk Quota Exceeded”

Cause: It is likely the VSC run-time cache is eating up all your disk quota.

Solution: Simply remove the cache file. On the Linux machine do this (e.g., via the Terminal of Visual Studio Code), issue this command:

$ clear-cache

This can take a short while, but after this you should be able to write to your file again.

If you are still having problems with your disk quota, you can also remove all the VSC files, but you will have to re-install VSC later.

$ uninstall-vscode

Other useful commands for checking your cache and profile:

Check Profile size:

$ profile-size

Check Cache size:

$ cache-size

If you are not sure what directories are using your disk quota, you can use:

$ cd; du -ch --max-depth=1 ~ --exclude ~/tmp | grep total | sed 's/ *\stotal* *\(.*\)/\1/'

or alternatively

$ find ~ -maxdepth 1 -execdir du -s {} \; | sort -n