Turn off Gemini Cloud Assist

This page shows you how to turn off Gemini Cloud Assist.

For information about changing the settings that control sharing Gemini Cloud Assist prompts and responses with Google, see Configure prompt and response sharing for Gemini Cloud Assist.

Turn off Gemini Cloud Assist

To turn off Gemini Cloud Assist, do the following:

Console

  1. To limit access for specific users in your organization, remove Identity and Access Management permissions for Gemini Cloud Assist:

    1. Go to the IAM & Admin page.

      Go to IAM & Admin

    2. In the Principal column, find a principal for which you want to remove access to Gemini Cloud Assist, and then click Edit principal in that row.

    3. In the Edit access pane, do the following:

      1. Locate the Gemini for Google Cloud User role, and then click Delete role.

      2. Locate the Gemini Cloud Assist User role, and then click Delete role.

      3. Locate the Service Usage Consumer role, and then click Delete role.

    4. Click Save.

  2. Turn off the Gemini Cloud Assist API (geminicloudassist.googleapis.com):

    1. Go to the Enabled APIs & services page.

      Go to Enabled APIs & services

    2. To select the Google Cloud project where you want to disable the Gemini Cloud Assist API, do one of the following:

      • In the Select a recent project section, click a Google Cloud project.

      • Use the Select a resource dialog:

        1. Click Select project.
        2. In the Select a project dialog, click the name of the Google Cloud project for which you want to disable the API.
    3. Click the Gemini Cloud Assist API entry. If you need help finding the API, use the Search field in the Google Cloud console toolbar.

    4. Click Disable API.

  3. Optional: If you are disabling all Gemini for Google Cloud products, then repeat the previous step to turn off the Gemini for Google Cloud API.

gcloud

  1. In the Google Cloud console, activate Cloud Shell.

    Activate Cloud Shell

  2. To limit access for specific users in your organization, remove Identity and Access Management permissions for Gemini Cloud Assist:

    1. Remove the role roles/cloudaicompanion.user using the command gcloud projects remove-iam-policy-binding:

      gcloud projects remove-iam-policy-binding PROJECT_ID \
      --member=PRINCIPAL --role=roles/cloudaicompanion.user
      

      Replace the following:

      • PROJECT_ID: the ID of your Google Cloud project—for example,1234567890.
      • PRINCIPAL: the identifier for the principal—for example, user:cloudysanfrancisco@gmail.com.

      The output is a list of policy bindings.

    2. Repeat the previous step for the following roles:

      • roles/geminicloudassist.user
      • roles/serviceusage.serviceUsageConsumer
  3. Turn off the Gemini Cloud Assist API (geminicloudassist.googleapis.com) using the command gcloud services disable:

     gcloud services disable geminicloudassist.googleapis.com
    

    If successful, the command produces output similar to the following:

     Waiting for async operation operations/acf.e9d0943b-55d9-4ac0-8af4-745e1b8983f8 to complete...
     Operation finished successfully.
    
  4. Optional: If you are disabling all Gemini for Google Cloud products, then repeat the previous step to turn off the cloudaicompanion.googleapis.com API.