Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
En esta página se describe cómo inhabilitar Cloud Shell para cuentas de usuario gestionadas y cómo restablecer Cloud Shell.
Inhabilitar Cloud Shell en cuentas de usuario gestionadas
Para inhabilitar Cloud Shell en cuentas de usuario gestionadas de Google Workspace y Cloud Identity, ve a la consola de administración de Google y, a continuación, ve a Aplicaciones > Servicios adicionales de Google > Google Cloud Platform > Configuración de Cloud Shell y deshabilita Configuración de acceso a Cloud Shell.
Para inhabilitar Cloud Shell para usuarios específicos, debes usar grupos de acceso: añade usuarios concretos al grupo y desactiva el ajuste de acceso a Cloud Shell del grupo. Para obtener más información, consulta la guía sobre cómo controlar quién usa Google Cloud en tu organización.
Restablecer Cloud Shell
Para restablecer Cloud Shell y restaurar tu directorio principal de Cloud Shell a un estado limpio, sigue estos pasos.
Para restaurar tu directorio principal de Cloud Shell a un estado limpio, sigue estos pasos:
Busca archivos personales en el directorio principal y ten en cuenta que en el paso siguiente se eliminarán estos archivos:
ls -a $HOME
Quita todos los archivos de tu directorio personal:
sudo rm -rf $HOME
En el menú de Cloud Shell, haz clic en
more_vertMás y, a continuación, en
power_settings_newReiniciar.
Si se te pide, haz clic en Reiniciar en el cuadro de diálogo de confirmación.
De esta forma, se aprovisiona una nueva VM y se restaura el directorio principal a su estado predeterminado.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-11 (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."]]