Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara menonaktifkan Cloud Shell untuk akun pengguna terkelola dan cara mereset Cloud Shell.
Menonaktifkan Cloud Shell untuk akun pengguna terkelola
Untuk menonaktifkan Cloud Shell bagi akun pengguna yang dikelola Google Workspace dan Cloud Identity, buka konsol Google Admin, lalu buka Aplikasi > Layanan Google tambahan > Google Cloud Platform > Setelan Cloud Shell, lalu nonaktifkan Setelan Akses Cloud Shell.
Untuk menonaktifkan Cloud Shell bagi pengguna tertentu, Anda harus menggunakan grup akses: tambahkan pengguna satu per satu ke grup dan nonaktifkan setelan akses Cloud Shell grup. Untuk mengetahui informasi selengkapnya, lihat
panduan Mengontrol siapa yang menggunakan Google Cloud di organisasi Anda.
Mereset Cloud Shell
Untuk mereset Cloud Shell dan memulihkan direktori rumah Cloud Shell Anda ke status bersih, ikuti langkah-langkah berikut.
Untuk memulihkan direktori beranda Cloud Shell ke status bersih:
Periksa file pribadi di direktori home dan perhatikan bahwa langkah berikutnya
akan menghapus file ini:
ls -a $HOME
Hapus semua file dari direktori beranda Anda:
sudo rm -rf $HOME
Di menu Cloud Shell, klik
more_vertLainnya, lalu klik
power_settings_newMulai ulang.
Jika diminta, klik Mulai ulang di dialog konfirmasi.
Tindakan ini akan menyediakan VM baru dan memulihkan direktori beranda ke status default-nya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]