---
title: pydo.harness.delete_template()
description: DeleteTemplate deletes a team custom template.
product: Reference
url: https://docs.digitalocean.com/reference/pydo/reference/harness/delete_template/
last_updated: "2026-11-20"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# pydo.harness.delete_template()

Generated on 20 Nov 2026 from `pydo` version [`v0.47.0`](https://github.com/digitalocean/pydo/releases/tag/v0.47.0)

## Usage

```python
client.harness.delete_template(
    template_id="11111111-2222-3333-4444-555555555555",
)
```

Returns `JSON` Raises `HttpResponseError`

## Description

Global templates cannot be deleted via this API.

## Parameters

`template_id` string required

Example: `11111111-2222-3333-4444-555555555555`

The template UUID.

## Response Example

## Show Response Example

```json
{
  "template_id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "deleted": true
}
```

## More Information

See [`/v2/harness-runtime/templates/{template_id}`](https://docs.digitalocean.com/reference/api/reference/harness-runtime/index.html.md#harness_delete_template) in the API reference for additional detail on responses, headers, parameters, and more.