# deleteContentTemplateFolder

Delete a template folder by id. Subfolders inside it are also deleted; templates in the deleted folders become ungrouped rather than deleted. Returns the remaining folders.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "deleteContentTemplateFolder", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `folderId`: `ID!` (required)

## Response (data, an example)

```json
{
  "workflowAutomationsMutation": {
    "deleteLibraryFolder": {
      "libraryFolders": [
        {
          "id": "<ID>",
          "name": "…"
        }
      ]
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "deleteContentTemplateFolder",
    "variables": {
      "folderId": "<folderId>"
    }
  }'
```
