public sealed class PurgeContextsRequest : IMessage<PurgeContextsRequest>, IEquatable<PurgeContextsRequest>, IDeepCloneable<PurgeContextsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class PurgeContextsRequest.
Request message for
[MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
Optional. Flag to indicate to actually perform the purge.
If force is set to false, the method will return a sample of
Context names that would be deleted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003ePurgeContextsRequest\u003c/code\u003e class within the Vertex AI v1beta1 API, specifically found in the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePurgeContextsRequest\u003c/code\u003e class is a request message used for the \u003ccode\u003eMetadataService.PurgeContexts\u003c/code\u003e method and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, implementing several interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides constructors for creating \u003ccode\u003ePurgeContextsRequest\u003c/code\u003e objects, including a default constructor and one that accepts another \u003ccode\u003ePurgeContextsRequest\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eIt contains properties like \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eForce\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, which allow users to specify conditions, decide on the action and define the parent metadata store, respectively, and the property \u003ccode\u003eParentAsMetadataStoreName\u003c/code\u003e which is a typed view of the \u003ccode\u003eParent\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API, is version \u003ccode\u003e1.0.0-beta21\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class PurgeContextsRequest (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsRequest)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsRequest) \n\n public sealed class PurgeContextsRequest : IMessage\u003cPurgeContextsRequest\u003e, IEquatable\u003cPurgeContextsRequest\u003e, IDeepCloneable\u003cPurgeContextsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class PurgeContextsRequest.\n\nRequest message for\n\\[MetadataService.PurgeContexts\\]\\[google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PurgeContextsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PurgeContextsRequest](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PurgeContextsRequest](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PurgeContextsRequest](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### PurgeContextsRequest()\n\n public PurgeContextsRequest()\n\n### PurgeContextsRequest(PurgeContextsRequest)\n\n public PurgeContextsRequest(PurgeContextsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nRequired. A required filter matching the Contexts to be purged.\nE.g., `update_time \u003c= 2020-11-19T11:30:00-04:00`.\n\n### Force\n\n public bool Force { get; set; }\n\nOptional. Flag to indicate to actually perform the purge.\nIf `force` is set to false, the method will return a sample of\nContext names that would be deleted.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The metadata store to purge Contexts from.\nFormat:\n`projects/{project}/locations/{location}/metadataStores/{metadatastore}`\n\n### ParentAsMetadataStoreName\n\n public MetadataStoreName ParentAsMetadataStoreName { get; set; }\n\n[MetadataStoreName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MetadataStoreName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsRequest#Google_Cloud_AIPlatform_V1Beta1_PurgeContextsRequest_Parent) resource name property."]]