Google was the first in the industry to publish an
AI/ML Privacy Commitment,
which outlines our belief that customers should have the highest level of
security and control over their data that is stored in the cloud. That commitment
extends to Google Cloud's generative AI products. Google ensures that its
teams are following these commitments through robust data governance practices,
which include reviews of the data that Google Cloud uses in the development of
its products. More details about how Google processes data can also be found in
Google's Cloud Data Processing Addendum (CDPA). As outlined in Section 17 "Training Restriction" in the Service Terms section of
Service Specific Terms,
Google won't use your data to train or fine-tune any AI/ML models without your
prior permission or instruction. This applies to all managed models on
Vertex AI, including GA and pre-GA models. Customer data is retained in Vertex AI for Google models for limited
periods of time in the following scenarios and conditions. To achieve zero data retention, customers must take specific actions within each of these areas: This applies to all managed models on Vertex AI, including GA and
pre-GA models. You can use the following curl commands to get
caching status, disable caching, or re-enable caching.
When you disable or re-enable caching, the change
applies to all Google Cloud regions. For more information about using
Identity and Access Management to grant permissions required to enable or disable caching, see
Vertex AI access control with IAM.
Expand the following sections to learn how to get the current cache setting, to
disable caching, and to enable caching. Run the following command to determine if caching is enabled or disabled for a
project. To run this command, a user must be granted one of the following
roles: Run the following curl command to disable caching for a Google Cloud project. To run
this command, a user must be granted the Vertex AI administrator role,
If you disabled caching for a Google Cloud project and want re-enable it, run the
following curl command. To run this command, a user must be granted the
Vertex AI administrator role, Training restriction
Customer data retention and achieving zero data retention
Enabling and disabling data caching
Get current caching setting
roles/aiplatform.viewer
, roles/aiplatform.user
, or
roles/aiplatform.admin
.
PROJECT_ID=PROJECT_ID
# Setup project_id
$ gcloud config set project PROJECT_ID
# GetCacheConfig
$ curl -X GET -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" -H "Content-Type: application/json" https://us-central1-aiplatform.googleapis.com/v1/projects/PROJECT_ID/cacheConfig
# Response if caching is enabled (caching is enabled by default).
{
"name": "projects/PROJECT_ID/cacheConfig"
}
# Response if caching is disabled.
{
"name": "projects/PROJECT_ID/cacheConfig"
"disableCache": true
}
Disable caching
roles/aiplatform.admin
.
PROJECT_ID=PROJECT_ID
# Setup project_id
$ gcloud config set project PROJECT_ID
# Setup project_id.
$ gcloud config set project ${PROJECT_ID}
# Opt-out of caching.
$ curl -X PATCH -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" -H "Content-Type: application/json" https://us-central1-aiplatform.googleapis.com/v1/projects/PROJECT_ID/cacheConfig -d '{
"name": "projects/PROJECT_ID/cacheConfig",
"disableCache": true
}'
# Response.
{
"name": "projects/PROJECT_ID/locations/us-central1/projects/PROJECT_ID/cacheConfig/operations/${OPERATION_ID}",
"done": true,
"response": {
"@type": "type.googleapis.com/google.protobuf.Empty"
}
}
Enable caching
roles/aiplatform.admin
.
PROJECT_ID=PROJECT_ID
LOCATION_ID="us-central1"
# Setup project_id
$ gcloud config set project PROJECT_ID
# Setup project_id.
$ gcloud config set project ${PROJECT_ID}
# Opt in to caching.
$ curl -X PATCH -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" -H "Content-Type: application/json" https://us-central1-aiplatform.googleapis.com/v1/projects/PROJECT_ID/cacheConfig -d '{
"name": "projects/PROJECT_ID/cacheConfig",
"disableCache": false
}'
# Response.
{
"name": "projects/PROJECT_ID/locations/us-central1/projects/PROJECT_ID/cacheConfig/operations/${OPERATION_NUMBER}",
"done": true,
"response": {
"@type": "type.googleapis.com/google.protobuf.Empty"
}
}
What's next
Generative AI and zero data retention
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-15 UTC.