Stay organized with collections
Save and categorize content based on your preferences.
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.
Before you begin
Authenticate to
Vertex AI, unless you've done so already.
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and
APIs, you don't need to set up authentication.
REST
To use the REST API samples on this page in a local development environment, you use the
credentials you provide to the gcloud CLI.
Install the Google Cloud CLI.
After installation,
initialize the Google Cloud CLI by running the following command:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Delete an online store\n\nYou can delete an existing online store instance, even if it contains feature\nview instances. If an online store instance contains existing feature view\ninstances, you can use the `force` query parameter to delete the online store\nand its feature views.\n| **Caution:** Before deleting an online store containing feature views, stop any online serving operations that are in progress from those feature views.\n\nBefore you begin\n----------------\n\n\nto\nVertex AI, unless you've done so already.\n\nSelect the tab for how you plan to use the samples on this page: \n\n### Console\n\n\nWhen you use the Google Cloud console to access Google Cloud services and\nAPIs, you don't need to set up authentication.\n\n### REST\n\n\nTo use the REST API samples on this page in a local development environment, you use the\ncredentials you provide to the gcloud CLI.\n\n1. [Install](/sdk/docs/install) the Google Cloud CLI. After installation, [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command: \n\n```bash\ngcloud init\n```\n2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\nFor more information, see\n[Authenticate for using REST](/docs/authentication/rest)\nin the Google Cloud authentication documentation.\n\nDelete an online store instance\n-------------------------------\n\nUse the following samples to delete an online store along with its constituent\nfeature views from your project. \n\n### Console\n\nUse the following instructions to delete an online store and all its feature views using the Google Cloud console.\n\n1. In the Vertex AI section of the Google Cloud console, go\n to the **Feature Store** page.\n\n [Go to the Feature Store page](https://console.cloud.google.com/vertex-ai/feature-store)\n2. Click **Online store**.\n\n3. Select checkbox next to the online store that you want to delete.\n\n4. Click **Delete** and then click **Confirm**.\n\n### REST\n\n\nTo delete a [`FeatureOnlineStore`](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores#resource:-featureOnlineStore) resource, send a `DELETE` request by using the\n[featureOnlineStores.delete](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores/delete)\nmethod.\n\n\nBefore using any of the request data,\nmake the following replacements:\n\n- \u003cvar translate=\"no\"\u003eLOCATION_ID\u003c/var\u003e: Region where the online store is located, such as `us-central1`.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID.\n- \u003cvar translate=\"no\"\u003eFEATUREONLINESTORE_NAME\u003c/var\u003e: The name of the online store instance that you want to delete.\n- \u003cvar translate=\"no\"\u003eBOOLEAN\u003c/var\u003e: Optional. To delete the online instance even if it contains feature views, enter `true`. The default value is `false`.\n\n\nHTTP method and URL:\n\n```\nDELETE https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME?force=BOOLEAN\n```\n\nTo send your request, choose one of these options: \n\n#### curl\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) , or by using [Cloud Shell](/shell/docs), which automatically logs you into the `gcloud` CLI . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\ncurl -X DELETE \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n \"https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME?force=BOOLEAN\"\n```\n\n#### PowerShell\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\n$cred = gcloud auth print-access-token\n$headers = @{ \"Authorization\" = \"Bearer $cred\" }\n\nInvoke-WebRequest `\n -Method DELETE `\n -Headers $headers `\n -Uri \"https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME?force=BOOLEAN\" | Select-Object -Expand Content\n```\n\nYou should receive a JSON response similar to the following:\n\n```\n{\n \"name\": \"projects/PROJECT_NUMBER/locations/LOCATION_ID/operations/OPERATION_ID\",\n \"metadata\": {\n \"@type\": \"type.googleapis.com/google.cloud.aiplatform.v1.DeleteOperationMetadata\",\n \"genericMetadata\": {\n \"createTime\": \"2023-09-15T17:30:31.741064Z\",\n \"updateTime\": \"2023-09-15T17:30:31.741064Z\"\n }\n }\n}\n```\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- Learn how to [update an online store](/vertex-ai/docs/featurestore/latest/update-onlinestore).\n\n- Learn how to [delete a feature view](/vertex-ai/docs/featurestore/latest/delete-featureview)."]]