Required. The name of the ExampleStore resource that the examples should be removed from. Format: projects/{project}/locations/{location}/exampleStores/{exampleStore}
Request body
The request body contains data with the following structure:
Fields
exampleIds[]
string
Optional. Example IDs to remove. If both metadata filters and Example IDs are specified, the metadata filters will be applied to the specified examples in order to identify which should be removed.
metadata_filter
Union type
The metadata filters that will be used to select which examples should be removed. metadata_filter can be only one of the following:
[[["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-06-27 UTC."],[],[],null,["# Method: exampleStores.removeExamples\n\n**Full name**: projects.locations.exampleStores.removeExamples\n\nRemove Examples from the Example Store. \n\n### Endpoint\n\npost `https:``/``/{service-endpoint}``/v1beta1``/{exampleStore}:removeExamples` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n`exampleStore` `string` \nRequired. The name of the ExampleStore resource that the examples should be removed from. Format: `projects/{project}/locations/{location}/exampleStores/{exampleStore}`\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `exampleIds[]` `string` \nOptional. Example IDs to remove. If both metadata filters and Example IDs are specified, the metadata filters will be applied to the specified examples in order to identify which should be removed. \n`metadata_filter` `Union type` \nThe metadata filters that will be used to select which examples should be removed. `metadata_filter` can be only one of the following:\n`storedContentsExampleFilter` `object (`[StoredContentsExampleFilter](/vertex-ai/docs/reference/rest/v1beta1/StoredContentsExampleFilter)`)` \nThe metadata filters for StoredContentsExamples. \n\n### Response body\n\nResponse message for [ExampleStoreService.RemoveExamples](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.exampleStores/removeExamples#google.cloud.aiplatform.v1beta1.ExampleStoreService.RemoveExamples).\n\nIf successful, the response body contains data with the following structure:\nFields `exampleIds[]` `string` \nThe IDs for the removed examples."]]