---
title: "POST /v1/{+name}:deleteTree"
method: POST
path: "/v1/{+name}:deleteTree"
tags: ["projects"]
---

# POST /v1/{+name}:deleteTree

`POST /v1/{+name}:deleteTree`

Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs).

## Path parameters

- `name` string, required

## Request body

- DeleteTeamFolderTreeRequest — `DeleteTeamFolderTree` request message.
  - `force` boolean — Optional. If `false` (default): The operation will fail if any Repository within the folder hierarchy has associated Release Configs or Workflow Configs. If `true`: The operation will attempt to delete everything, including any Release Configs and Workflow Configs linked to Repositories within the folder hierarchy. This permanently removes schedules and resources.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/dataform.md) · [All operations](https://skmtc.net/google/apis/dataform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/dataform/versions/b9dafc69d5c5/schema)
