public sealed class DeleteManagedFolderRequest : IMessage<DeleteManagedFolderRequest>, IEquatable<DeleteManagedFolderRequest>, IDeepCloneable<DeleteManagedFolderRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Storage v2 API class DeleteManagedFolderRequest.
Allows deletion of a managed folder even if it is not empty.
A managed folder is empty if it manages no child managed folders or
objects. Caller must have permission for
storage.managedFolders.setIamPolicy.
[[["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\u003e\u003ccode\u003eDeleteManagedFolderRequest\u003c/code\u003e is a class within the Cloud Storage v2 API used to construct RPC requests for deleting managed folders.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \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\u003eKey properties include \u003ccode\u003eName\u003c/code\u003e (the required name of the managed folder), \u003ccode\u003eAllowNonEmpty\u003c/code\u003e (to allow deletion of non-empty folders), and \u003ccode\u003eIfMetagenerationMatch\u003c/code\u003e/\u003ccode\u003eIfMetagenerationNotMatch\u003c/code\u003e (for conditional deletion based on metageneration).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eManagedFolderName\u003c/code\u003e property provides a typed view over the \u003ccode\u003eName\u003c/code\u003e resource, ensuring a consistent format for the managed folder name.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available: one default and the other that accepts another instance of \u003ccode\u003eDeleteManagedFolderRequest\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,["# Cloud Storage v2 API - Class DeleteManagedFolderRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.3.0/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.2.0/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.1.0/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest)\n- [1.0.1](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.0.1/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest) \n\n public sealed class DeleteManagedFolderRequest : IMessage\u003cDeleteManagedFolderRequest\u003e, IEquatable\u003cDeleteManagedFolderRequest\u003e, IDeepCloneable\u003cDeleteManagedFolderRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Storage v2 API class DeleteManagedFolderRequest.\n\nDeleteManagedFolder RPC request message. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteManagedFolderRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteManagedFolderRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteManagedFolderRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteManagedFolderRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest), [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.Storage.Control.V2](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Storage.Control.V2.dll\n\nConstructors\n------------\n\n### DeleteManagedFolderRequest()\n\n public DeleteManagedFolderRequest()\n\n### DeleteManagedFolderRequest(DeleteManagedFolderRequest)\n\n public DeleteManagedFolderRequest(DeleteManagedFolderRequest other)\n\nProperties\n----------\n\n### AllowNonEmpty\n\n public bool AllowNonEmpty { get; set; }\n\nAllows deletion of a managed folder even if it is not empty.\nA managed folder is empty if it manages no child managed folders or\nobjects. Caller must have permission for\nstorage.managedFolders.setIamPolicy.\n\n### HasIfMetagenerationMatch\n\n public bool HasIfMetagenerationMatch { get; }\n\nGets whether the \"if_metageneration_match\" field is set\n\n### HasIfMetagenerationNotMatch\n\n public bool HasIfMetagenerationNotMatch { get; }\n\nGets whether the \"if_metageneration_not_match\" field is set\n\n### IfMetagenerationMatch\n\n public long IfMetagenerationMatch { get; set; }\n\nThe operation succeeds conditional on the managed folder's current\nmetageneration matching the value here specified.\n\n### IfMetagenerationNotMatch\n\n public long IfMetagenerationNotMatch { get; set; }\n\nThe operation succeeds conditional on the managed folder's current\nmetageneration NOT matching the value here specified.\n\n### ManagedFolderName\n\n public ManagedFolderName ManagedFolderName { get; set; }\n\n[ManagedFolderName](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.ManagedFolderName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.DeleteManagedFolderRequest#Google_Cloud_Storage_Control_V2_DeleteManagedFolderRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Name of the managed folder.\nFormat:\n`projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A unique identifier for this request. UUID is the recommended\nformat, but other formats are still accepted."]]