Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset Google Cloud Shell environment

I am trying to reset my Cloud Shell disk. I am deleting projects and creating new, but getting same cloud shell with all pre-installed files. Is there anyway to reset completely.

like image 668
BruceWayne Avatar asked Aug 31 '25 01:08

BruceWayne


1 Answers

Yes there is

Restore your Cloud Shell home directory to a clean state:

Check for personal files in the home directory:
  ls -a $HOME
Remove all files from your home directory:
  sudo rm -rf $HOME
In the Cloud Shell menu, click the gear icon, then click Restart Cloud Shell. Click Restart Cloud Shell in the confirmation dialog.

From the docs https://cloud.google.com/shell/docs/resetting-cloud-shell

like image 190
Arne S Avatar answered Sep 02 '25 17:09

Arne S