Delete a feature

You can delete specific features from a feature group. Deleting a feature unregisters the feature column from the Feature Registry and doesn't affect the data in the column in the registered BigQuery source table or view. You can create another feature in any feature group to register the same column again, if necessary.

Before you begin

Authenticate to Vertex 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, 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

Use the following sample to delete a feature from a feature group.


To delete a Feature resource, send a DELETE request by using the features.delete method.

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:


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/operations/OPERATION_ID",
  "metadata": {
    "@type": "",
    "genericMetadata": {
      "createTime": "2023-09-25T18:52:42.092928Z",
      "updateTime": "2023-09-25T18:52:42.092928Z"
  "done": true,
  "response": {
    "@type": ""

What's next