You can delete an existing online store instance, even if it contains feature
view instances. If an online store instance contains existing feature view
instances, you can use the force
query parameter to delete the online store
and its feature views.
Use the following samples to delete an online store along with its constituent feature views from your project.
Console
Use the following instructions to delete an online store and all its feature views using the Google Cloud console.
In the Vertex AI section of the Google Cloud console, go to the Feature Store page.
Click Online store.
Select checkbox next to the online store that you want to delete.
Click Delete and then click Confirm.
REST
To delete a FeatureOnlineStore
resource, send a DELETE
request by using the
featureOnlineStores.delete
method.
Before using any of the request data, make the following replacements:
- LOCATION_ID: Region where the online store is located, such as
us-central1
. - PROJECT_ID: Your project ID.
- FEATUREONLINESTORE_NAME: The name of the online store instance that you want to delete.
- BOOLEAN: Optional. To delete the online instance even if it contains feature views,
enter
true
. The default value isfalse
.
HTTP method and URL:
DELETE http://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME?force=BOOLEAN
To send your request, choose one of these options:
curl
Execute the following command:
curl -X DELETE \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
"http://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME?force=BOOLEAN"
PowerShell
Execute the following command:
$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }
Invoke-WebRequest `
-Method DELETE `
-Headers $headers `
-Uri "http://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME?force=BOOLEAN" | Select-Object -Expand Content
You should receive a JSON response similar to the following:
{ "name": "projects/PROJECT_NUMBER/locations/LOCATION_ID/operations/OPERATION_ID", "metadata": { "@type": "type.googleapis.com/google.cloud.aiplatform.v1.DeleteOperationMetadata", "genericMetadata": { "createTime": "2023-09-15T17:30:31.741064Z", "updateTime": "2023-09-15T17:30:31.741064Z" } } }
What's next
Learn how to update an online store.
Learn how to delete a feature view.