# Delete market template

`DELETE https://api.cryptohopper.com/v1/template/market/{template_id}`

Part of [Templates](https://www.cryptohopper.com/api-documentation/api-reference/templates.md) in the Cryptohopper API reference.

Deletes a template the user bought on the Marketplace. When the purchase qualifies for a refund it is refunded, and the message says so.

OAuth scope: `read`, `manage`

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `template_id` | string | yes | ID of the market template (template_id from Get market templates). |

## Example request

```bash
curl -X DELETE "https://api.cryptohopper.com/v1/template/market/TEMPLATE_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN"
```

## Response

Example response (illustrative values):

```json
{
    "data": "The market template has been deleted."
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
