---
title: "POST /v1/{+entityType}:deleteFeatureValues"
method: POST
path: "/v1/{+entityType}:deleteFeatureValues"
tags: ["projects"]
---

# POST /v1/{+entityType}:deleteFeatureValues

`POST /v1/{+entityType}:deleteFeatureValues`

Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.

## Path parameters

- `entityType` string, required

## Request body

- GoogleCloudAiplatformV1DeleteFeatureValuesRequest — Request message for FeaturestoreService.DeleteFeatureValues.
  - `selectEntity` GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity — Message to select entity. If an entity id is selected, all the feature values corresponding to the entity id will be deleted, including the entityId.
    - `entityIdSelector` GoogleCloudAiplatformV1EntityIdSelector — Selector for entityId. Getting ids from the given source.
      - `entityIdField` string — Source column that holds entity IDs. If not provided, entity IDs are extracted from the column named entity_id.
      - `csvSource` GoogleCloudAiplatformV1CsvSource — The storage details for CSV input content.
        - `gcsSource` GoogleCloudAiplatformV1GcsSource — The Google Cloud Storage location for the input content.
          - `uris` string[] — Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards.
  - `selectTimeRangeAndFeature` GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature — Message to select time range and feature. Values of the selected feature generated within an inclusive time range will be deleted. Using this option permanently deletes the feature values from the specified feature IDs within the specified time range. This might include data from the online storage. If you want to retain any deleted historical data in the online storage, you must re-ingest it.
    - `timeRange` GoogleTypeInterval — Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
      - `startTime` string, google-datetime — Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
      - `endTime` string, google-datetime — Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
    - `featureSelector` GoogleCloudAiplatformV1FeatureSelector — Selector for Features of an EntityType.
      - `idMatcher` GoogleCloudAiplatformV1IdMatcher — Matcher for Features of an EntityType by Feature ID.
        - `ids` string[] — Required. The following are accepted as `ids`: * A single-element list containing only `*`, which selects all Features in the target EntityType, or * A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.
    - `skipOnlineStorageDelete` boolean — If set, data will not be deleted from online storage. When time range is older than the data in online storage, setting this to be true will make the deletion have no impact on online serving.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/aiplatform.md) · [All operations](https://skmtc.dev/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/aiplatform/revisions/b608d71b91f0/schema)
