Delete a feature view

Deleting a feature view doesn't cancel ongoing online serving operations. You need to stop any active online serving operation that's currently active from the feature view you want to delete. Otherwise, the online serving operation fails after you delete the feature view.

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:


When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.


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, then initialize it by running the following command:

    gcloud init

For more information, see Authenticate for using REST in the Google Cloud authentication documentation.

Delete a feature view instance

Use the following samples to delete a feature view from an online store in your project.


Use the following instructions to delete a feature view using the Google Cloud console.

  1. In the Vertex AI section of the Google Cloud console, go to the Feature Store page.

    Go to the Feature Store page

  2. Click Online store.

  3. Click the name of the online store to view its details on the Online store details page.

  4. In the Feature views section, XZselect checkbox next to the feature view that you want to delete.

  5. Click Delete and then click Confirm.


To delete a FeatureView instance, send a DELETE request by using the featureViews.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 containing the feature view.
  • FEATUREVIEW_NAME: The name of the feature view you want to delete.

HTTP method and URL:


To send your request, choose one of these options:


Execute the following command:

curl -X DELETE \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \


Execute the following command:

$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }

Invoke-WebRequest `
-Method DELETE `
-Headers $headers `
-Uri "" | Select-Object -Expand Content

You should receive a JSON response similar to the following:

  "name": "projects/PROJECT_NUMBER/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME/operations/OPERATION_ID",
  "metadata": {
    "@type": "",
    "genericMetadata": {
      "createTime": "2023-09-15T17:30:31.741064Z",
      "updateTime": "2023-09-15T17:30:31.741064Z"

What's next