public sealed class DeleteApiSpecRequest : IMessage<DeleteApiSpecRequest>, IEquatable<DeleteApiSpecRequest>, IDeepCloneable<DeleteApiSpecRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Apigee Registry v1 API class DeleteApiSpecRequest.
[[["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-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDeleteApiSpecRequest\u003c/code\u003e class is part of the Apigee Registry v1 API, and is used to represent a request for deleting an API specification.\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, making it compatible with protocol buffers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteApiSpecRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eApiSpecName\u003c/code\u003e, \u003ccode\u003eForce\u003c/code\u003e, and \u003ccode\u003eName\u003c/code\u003e which are used to specify the target spec to delete, and whether child resources should be deleted along with it.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eDeleteApiSpecRequest\u003c/code\u003e, one default and one that takes another \u003ccode\u003eDeleteApiSpecRequest\u003c/code\u003e instance for cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is 1.0.0-beta07 and it is located in the \u003ccode\u003eGoogle.Cloud.ApigeeRegistry.V1\u003c/code\u003e namespace, within the \u003ccode\u003eGoogle.Cloud.ApigeeRegistry.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Apigee Registry v1 API - Class DeleteApiSpecRequest (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.DeleteApiSpecRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/1.0.0-beta06/Google.Cloud.ApigeeRegistry.V1.DeleteApiSpecRequest) \n\n public sealed class DeleteApiSpecRequest : IMessage\u003cDeleteApiSpecRequest\u003e, IEquatable\u003cDeleteApiSpecRequest\u003e, IDeepCloneable\u003cDeleteApiSpecRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Apigee Registry v1 API class DeleteApiSpecRequest.\n\nRequest message for DeleteApiSpec. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteApiSpecRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteApiSpecRequest](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.DeleteApiSpecRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteApiSpecRequest](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.DeleteApiSpecRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteApiSpecRequest](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.DeleteApiSpecRequest), [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.ApigeeRegistry.V1](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ApigeeRegistry.V1.dll\n\nConstructors\n------------\n\n### DeleteApiSpecRequest()\n\n public DeleteApiSpecRequest()\n\n### DeleteApiSpecRequest(DeleteApiSpecRequest)\n\n public DeleteApiSpecRequest(DeleteApiSpecRequest other)\n\nProperties\n----------\n\n### ApiSpecName\n\n public ApiSpecName ApiSpecName { get; set; }\n\n[ApiSpecName](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.ApiSpecName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.DeleteApiSpecRequest#Google_Cloud_ApigeeRegistry_V1_DeleteApiSpecRequest_Name) resource name property.\n\n### Force\n\n public bool Force { get; set; }\n\nIf set to true, any child resources will also be deleted.\n(Otherwise, the request will only work if there are no child resources.)\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the spec to delete.\nFormat: `projects/*/locations/*/apis/*/versions/*/specs/*`"]]