Delete a feature Stay organized with collections Save and categorize content based on your preferences.
You can delete specific features from a feature group. Deleting a featureunregisters the feature column from the Feature Registry anddoesn't affect the data in the column in the registered BigQuerysource table or view. You cancreate another feature in anyfeature group to register the same column again, if necessary.
Before you begin
Authenticate toVertex AI, unless you've done so already.
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:
gcloudinit
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
For more information, seeAuthenticate for using REST in the Google Cloud authentication documentation.
Delete a feature
Use the following sample to delete a feature from a feature group.
REST
To delete aFeature resource, send aDELETE request by using thefeatures.deletemethod.
Before using any of the request data, make the following replacements:
- LOCATION_ID: Region where the feature group is located, such as
us-central1. - PROJECT_ID: Your project ID.
- FEATURE_GROUP_NAME: The name of the feature group containing the feature.
- FEATURE_NAME: The name of the feature that you want to delete.
HTTP method and URL:
DELETE https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureGroups/FEATURE_GROUP_NAME/features/FEATURE_NAME
To send your request, choose one of these options:
curl
Note: The following command assumes that you have logged in to thegcloud CLI with your user account by runninggcloud init orgcloud auth login , or by usingCloud Shell, which automatically logs you into thegcloud CLI . You can check the currently active account by runninggcloud auth list.Execute the following command:
curl -X DELETE \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureGroups/FEATURE_GROUP_NAME/features/FEATURE_NAME"
PowerShell
Note: The following command assumes that you have logged in to thegcloud CLI with your user account by runninggcloud init orgcloud auth login . You can check the currently active account by runninggcloud auth list.Execute the following command:
$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }
Invoke-WebRequest `
-Method DELETE `
-Headers $headers `
-Uri "https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureGroups/FEATURE_GROUP_NAME/features/FEATURE_NAME" | 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-25T18:52:42.092928Z", "updateTime": "2023-09-25T18:52:42.092928Z" } }, "done": true, "response": { "@type": "type.googleapis.com/google.protobuf.Empty" }}What's next
Learn how tocreate a feature.
Learn how toupdate a feature.
Learn how todelete a feature group along with its features.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.