如何重置Google Cloud Shell环境

Bru*_*yne 2 google-compute-engine google-cloud-platform google-cloud-shell

我正在尝试重置我的Cloud Shell磁盘。我正在删除项目并创建新的,但是所有预装文件都使用相同的云外壳。反正有没有完全重置。

Arn*_*e S 7

就在这里

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.
Run Code Online (Sandbox Code Playgroud)

从文档https://cloud.google.com/shell/docs/resetting-cloud-shell