Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se describe cómo inhabilitar Cloud Shell para cuentas de usuario administradas y cómo restablecerlo.
Inhabilita Cloud Shell para cuentas de usuario administradas
Para inhabilitar Cloud Shell para las cuentas de usuario administradas de Google Workspace y Cloud Identity, ve a la Consola del administrador de Google y, luego, navega a Aplicaciones > Servicios de Google adicionales > Google Cloud Platform > Configuración de Cloud Shell y, luego, inhabilita Configuración de acceso a Cloud Shell.
Si deseas inhabilitar Cloud Shell para usuarios específicos, deberás usar grupos de acceso: agrega usuarios individuales al grupo y desactiva la configuración de acceso de Cloud Shell del grupo. Para obtener más información, consulta Controla quién usa Google Cloud en la guía de tu organización.
Restablece Cloud Shell
Para restablecer Cloud Shell y devolver el directorio principal de Cloud Shell a un estado inicial, sigue estos pasos.
Sigue estos pasos para restablecer tu directorio principal de Cloud Shell al estado inicial:
Busca archivos personales en el directorio principal y ten en cuenta que el siguiente paso borrará estos archivos:
ls -a $HOME
Quita todos los archivos de tu directorio principal:
sudo rm -rf $HOME
En el menú de Cloud Shell, haz clic en more_vertMás y, luego, en power_settings_newReiniciar.
Si se te solicita, haz clic en Reiniciar en el diálogo de confirmación.
Esto aprovisiona una VM nueva y restablece el directorio principal a su estado predeterminado.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (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."]]