public sealed class DeleteRepositoryRequest : IMessage<DeleteRepositoryRequest>, IEquatable<DeleteRepositoryRequest>, IDeepCloneable<DeleteRepositoryRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class DeleteRepositoryRequest.
The current etag of the repository.
If an etag is provided and does not match the current etag of the
repository, deletion will be blocked and an ABORTED error will be 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-09-04 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eDeleteRepositoryRequest\u003c/code\u003e class within the Google Cloud Build v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteRepositoryRequest\u003c/code\u003e class is used to construct messages for deleting a repository, implementing several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteRepositoryRequest\u003c/code\u003e class has two constructors, including one for cloning another \u003ccode\u003eDeleteRepositoryRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eDeleteRepositoryRequest\u003c/code\u003e include \u003ccode\u003eEtag\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eRepositoryName\u003c/code\u003e, and \u003ccode\u003eValidateOnly\u003c/code\u003e, which control aspects of the repository deletion process such as conditional deletion and validation.\u003c/p\u003e\n"],["\u003cp\u003eThis class is available in multiple versions, with 1.4.0 being the most recent and 1.0.0 being the first.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class DeleteRepositoryRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest) \n\n public sealed class DeleteRepositoryRequest : IMessage\u003cDeleteRepositoryRequest\u003e, IEquatable\u003cDeleteRepositoryRequest\u003e, IDeepCloneable\u003cDeleteRepositoryRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class DeleteRepositoryRequest.\n\nMessage for deleting a Repository. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteRepositoryRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteRepositoryRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteRepositoryRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteRepositoryRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest), [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.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### DeleteRepositoryRequest()\n\n public DeleteRepositoryRequest()\n\n### DeleteRepositoryRequest(DeleteRepositoryRequest)\n\n public DeleteRepositoryRequest(DeleteRepositoryRequest other)\n\nProperties\n----------\n\n### Etag\n\n public string Etag { get; set; }\n\nThe current etag of the repository.\nIf an etag is provided and does not match the current etag of the\nrepository, deletion will be blocked and an ABORTED error will be returned.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the Repository to delete.\nFormat: `projects/*/locations/*/connections/*/repositories/*`.\n\n### RepositoryName\n\n public RepositoryName RepositoryName { get; set; }\n\n[RepositoryName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.RepositoryName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteRepositoryRequest#Google_Cloud_CloudBuild_V2_DeleteRepositoryRequest_Name) resource name property.\n\n### ValidateOnly\n\n public bool ValidateOnly { get; set; }\n\nIf set, validate the request, but do not actually post it."]]