public sealed class DeleteTargetSiteRequest : IMessage<DeleteTargetSiteRequest>, IEquatable<DeleteTargetSiteRequest>, IDeepCloneable<DeleteTargetSiteRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class DeleteTargetSiteRequest.
Request message for
[SiteSearchEngineService.DeleteTargetSite][google.cloud.discoveryengine.v1.SiteSearchEngineService.DeleteTargetSite]
method.
Required. Full resource name of
[TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}.
If the caller does not have permission to access the
[TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite]
does not exist, a NOT_FOUND error is returned.
[[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDeleteTargetSiteRequest\u003c/code\u003e class is used to request the deletion of a specific target site within the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, which support message handling, equality comparisons, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is 1.6.0, with earlier versions such as 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0, and 1.0.0-beta06 also documented.\u003c/p\u003e\n"],["\u003cp\u003eIt contains two constructors for creating instances, one default and another that accepts a \u003ccode\u003eDeleteTargetSiteRequest\u003c/code\u003e object as a parameter for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two key properties: \u003ccode\u003eName\u003c/code\u003e which represents the full resource name of the target site to be deleted and \u003ccode\u003eTargetSiteName\u003c/code\u003e, a typed view of the \u003ccode\u003eName\u003c/code\u003e property.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class DeleteTargetSiteRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest) \n\n public sealed class DeleteTargetSiteRequest : IMessage\u003cDeleteTargetSiteRequest\u003e, IEquatable\u003cDeleteTargetSiteRequest\u003e, IDeepCloneable\u003cDeleteTargetSiteRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class DeleteTargetSiteRequest.\n\nRequest message for\n\\[SiteSearchEngineService.DeleteTargetSite\\]\\[google.cloud.discoveryengine.v1.SiteSearchEngineService.DeleteTargetSite\\]\nmethod. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteTargetSiteRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteTargetSiteRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteTargetSiteRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteTargetSiteRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest), [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.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### DeleteTargetSiteRequest()\n\n public DeleteTargetSiteRequest()\n\n### DeleteTargetSiteRequest(DeleteTargetSiteRequest)\n\n public DeleteTargetSiteRequest(DeleteTargetSiteRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Full resource name of\n\\[TargetSite\\]\\[google.cloud.discoveryengine.v1.TargetSite\\], such as\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`.\n\nIf the caller does not have permission to access the\n\\[TargetSite\\]\\[google.cloud.discoveryengine.v1.TargetSite\\], regardless of\nwhether or not it exists, a PERMISSION_DENIED error is returned.\n\nIf the requested \\[TargetSite\\]\\[google.cloud.discoveryengine.v1.TargetSite\\]\ndoes not exist, a NOT_FOUND error is returned.\n\n### TargetSiteName\n\n public TargetSiteName TargetSiteName { get; set; }\n\n[TargetSiteName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.TargetSiteName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteTargetSiteRequest#Google_Cloud_DiscoveryEngine_V1_DeleteTargetSiteRequest_Name) resource name property."]]