Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to disable Cloud Shell for managed user accounts
and how to reset Cloud Shell.
Disable Cloud Shell for managed user accounts
To disable Cloud Shell for
Google Workspace and
Cloud Identity
managed user accounts, go to the
Google Admin console and then navigate to
Apps > Additional Google services > Google Cloud Platform >
Cloud Shell Settings
and disable Cloud Shell Access Settings.
To disable Cloud Shell for specific users, you'll need to use access
groups: add individual users to the group and turn off the group's
Cloud Shell access setting. For more information, see
Controlling who uses Google Cloud in your organization guide.
Reset Cloud Shell
To reset Cloud Shell and restore your Cloud Shell home
directory to a clean state, follow these steps.
To restore your Cloud Shell home directory to a clean state:
Check for personal files in the home directory and note that the next step
deletes these files:
ls -a $HOME
Remove all files from your home directory:
sudo rm -rf $HOME
In the Cloud Shell menu, click
more_vertMore and then click
power_settings_newRestart.
If prompted, click Restart in the confirmation dialog.
This provisions a new VM and restores the home directory to its default state.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Disable or reset Cloud Shell\n\nThis page describes how to disable Cloud Shell for managed user accounts\nand how to reset Cloud Shell.\n\nDisable Cloud Shell for managed user accounts\n---------------------------------------------\n\nTo disable Cloud Shell for\n[Google Workspace](https://support.google.com/a/answer/4352075) and\n[Cloud Identity](https://support.google.com/a/answer/7319251)\nmanaged user accounts, go to the\nGoogle Admin console and then navigate to\n**Apps** \\\u003e **Additional Google services** \\\u003e **Google Cloud Platform** \\\u003e\n**Cloud Shell Settings**\nand disable **Cloud Shell Access Settings**.\n\nTo disable Cloud Shell for specific users, you'll need to use access\ngroups: add individual users to the group and turn off the group's\nCloud Shell access setting. For more information, see\n[Controlling who uses Google Cloud in your organization guide](https://support.google.com/a/answer/9197205).\n\nReset Cloud Shell\n-----------------\n\nTo reset Cloud Shell and restore your Cloud Shell home\ndirectory to a clean state, follow these steps.\n| **Note:** Before resetting your Cloud Shell home directory, consider using [Safe mode](/shell/docs/how-cloud-shell-works#safe_mode) to sign in as root and fix issues with your files.\n\nTo restore your Cloud Shell home directory to a clean state:\n\n1. Check for personal files in the home directory and note that the next step\n deletes these files:\n\n ```sh\n ls -a $HOME\n ```\n2. Remove all files from your home directory:\n\n **Important:** This will permanently delete all files in your home directory. \n\n ```sh\n sudo rm -rf $HOME\n ```\n3. In the Cloud Shell menu, click\n more_vert **More** and then click\n power_settings_new **Restart** .\n If prompted, click **Restart** in the confirmation dialog.\n\n This provisions a new VM and restores the home directory to its default state."]]