How should I Reset Workspace on and keep my homedir


Hi… i have setup a c9 environment a few years ago.
I only use it to change code, and commit it to git
(so I use Git & ssh keys).

I made an error by running “sudo apt update; sudo apt upgrade” and now my workspace is full.
This is a common error as I noticed when searching in the community pages

Is it possible to keep my homedir with .git .ssh and the files i’m working on, and reset the rest of the container/vm/workspace? back to base ubuntu?

Or can someone provide me with a workflow to achieve the same end result?