Stay organized with collections
Save and categorize content based on your preferences.
Requests deletion of a Folder. The Folder is moved into the
DELETE_REQUESTED state immediately, and is deleted approximately 30 days
later. This method may only be called on an empty Folder in the ACTIVE
state, where a Folder is empty if it doesn't contain any Folders or
Projects in the ACTIVE state. The caller must have
resourcemanager.folders.delete permission on the identified folder.
Arguments
Parameters
name
string
Required. the resource name of the Folder to be deleted. Must be of the form folders/{folder_id}.
Raised exceptions
Exceptions
ConnectionError
In case of a network problem (such as DNS failure or refused connection).
HttpError
If the response status is >= 400 (excluding 429 and 503).
TimeoutError
If a long-running operation takes longer to finish than the specified timeout limit.
TypeError
If an operation or function receives an argument of the wrong type.
ValueError
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout.
Response
If successful, the response contains an instance of Folder.
Subworkflow snippet
Some fields might be optional or required.
To identify required fields, refer to the API documentation.
[[["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-29 UTC."],[],[],null,["# Method: googleapis.cloudresourcemanager.v2.folders.delete\n\nRequests deletion of a Folder. The Folder is moved into the\nDELETE_REQUESTED state immediately, and is deleted approximately 30 days\nlater. This method may only be called on an empty Folder in the ACTIVE\nstate, where a Folder is empty if it doesn't contain any Folders or\nProjects in the ACTIVE state. The caller must have\n`resourcemanager.folders.delete` permission on the identified folder.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Folder`](https://cloud.google.com/workflows/docs/reference/googleapis/cloudresourcemanager/v2/Overview#Folder).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/resource-manager/reference/rest/v2/folders/delete). \n\n### YAML\n\n```yaml\n- delete:\n call: googleapis.cloudresourcemanager.v2.folders.delete\n args:\n name: ...\n result: deleteResult\n```\n\n### JSON\n\n```json\n[\n {\n \"delete\": {\n \"call\": \"googleapis.cloudresourcemanager.v2.folders.delete\",\n \"args\": {\n \"name\": \"...\"\n },\n \"result\": \"deleteResult\"\n }\n }\n]\n```"]]