Method: memories.purge

Full name: projects.locations.reasoningEngines.memories.purge

Purge memories.

Endpoint

post https://aiplatform.googleapis.com/v1beta1/{parent}/memories:purge

Path parameters

parent string

Required. The resource name of the ReasoningEngine to purge memories from. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}

Request body

The request body contains data with the following structure:

Fields
filter string

Required. The standard list filter to determine which memories to purge. More detail in AIP-160.

force boolean

Optional. If true, the memories will actually be purged. If false, the purge request will be validated but not executed.

filterGroups[] object (MemoryConjunctionFilter)

Optional. metadata filters that will be applied to the memories to be purged. Filters are defined using disjunctive normal form (OR of ANDs).

For example: filterGroups: [{filters: [{key: "author", value: {stringValue: "agent 123"}, op: EQUAL}]}, {filters: [{key: "label", value: {stringValue: "travel"}, op: EQUAL}, {key: "author", value: {stringValue: "agent 321"}, op: EQUAL}]}]

would be equivalent to the logical expression: (metadata.author = "agent 123" OR (metadata.label = "travel" AND metadata.author = "agent 321")).

Response body

If successful, the response body contains an instance of Operation.