public sealed class DeleteContextRequest : IMessage<DeleteContextRequest>, IEquatable<DeleteContextRequest>, IDeepCloneable<DeleteContextRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class DeleteContextRequest.
The request message for
[Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext].
If Location ID is not specified we assume default 'us' location. If
Environment ID is not specified, we assume default 'draft' environment.
If User ID is not specified, we assume default '-' user.
[[["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-09-03 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDeleteContextRequest\u003c/code\u003e class is part of the Google Cloud Dialogflow v2beta1 API and is used to define a request for deleting a context.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, one default and another that takes an existing \u003ccode\u003eDeleteContextRequest\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteContextRequest\u003c/code\u003e class contains two main properties: \u003ccode\u003eContextName\u003c/code\u003e which represents the context name in a typed format, and \u003ccode\u003eName\u003c/code\u003e which represents the name of the context to be deleted in string format, following a specific structure.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is \u003ccode\u003e1.0.0-beta23\u003c/code\u003e which can be found in the \u003ccode\u003eGoogle.Cloud.Dialogflow.V2Beta1\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class DeleteContextRequest (1.0.0-beta23)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta23 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteContextRequest)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.DeleteContextRequest) \n\n public sealed class DeleteContextRequest : IMessage\u003cDeleteContextRequest\u003e, IEquatable\u003cDeleteContextRequest\u003e, IDeepCloneable\u003cDeleteContextRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class DeleteContextRequest.\n\nThe request message for\n\\[Contexts.DeleteContext\\]\\[google.cloud.dialogflow.v2beta1.Contexts.DeleteContext\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteContextRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteContextRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteContextRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteContextRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteContextRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteContextRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteContextRequest), [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.Dialogflow.V2Beta1](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2Beta1.dll\n\nConstructors\n------------\n\n### DeleteContextRequest()\n\n public DeleteContextRequest()\n\n### DeleteContextRequest(DeleteContextRequest)\n\n public DeleteContextRequest(DeleteContextRequest other)\n\nProperties\n----------\n\n### ContextName\n\n public ContextName ContextName { get; set; }\n\n[ContextName](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ContextName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteContextRequest#Google_Cloud_Dialogflow_V2Beta1_DeleteContextRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the context to delete. Supported formats:\n\n- `projects/\u003cProject ID\u003e/agent/sessions/\u003cSession ID\u003e/contexts/\u003cContext\n ID\u003e`,\n- `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e/agent/sessions/\u003cSession\n ID\u003e/contexts/\u003cContext ID\u003e`,\n- `projects/\u003cProject ID\u003e/agent/environments/\u003cEnvironment ID\u003e/users/\u003cUser\n ID\u003e/sessions/\u003cSession ID\u003e/contexts/\u003cContext ID\u003e`,\n- `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/agent/environments/\u003cEnvironment ID\u003e/users/\u003cUser ID\u003e/sessions/\u003cSession\n ID\u003e/contexts/\u003cContext ID\u003e`,\n\nIf `Location ID` is not specified we assume default 'us' location. If\n`Environment ID` is not specified, we assume default 'draft' environment.\nIf `User ID` is not specified, we assume default '-' user."]]