---
title: "Delete a document template"
method: DELETE
path: "/onboarding/v2/templates/{id}"
tags: ["Onboarding"]
---

# Delete a document template

`DELETE /onboarding/v2/templates/{id}`

## Request

- The document declares no server URL.
- Auth: API key in header `Ocp-Apim-Subscription-Key`

Delete a document template. Fails if the document template is referenced by a configuration.

## Path parameters

- `id` string, required

## Response `204`

No content - document template was deleted successfully.

## Other responses

- `400`: Bad customer request - the required field 'id' was not provided, or the document template is referenced by a configuration.
- `401`: Authentication failed - missing or incorrect subscription key.
- `404`: Document template with the provided 'id' was not found.
- `429`: Too many requests were sent for a short period of time. Try again a bit later.
- `5XX`: Internal server error. Its not you, its us! We are experiencing a rare and unexpected system disruption. Retry again later. The message field of the response will contain more information for the cause. Feel free to contact us.

---

[API](https://skmtc.dev/fonoa/apis/fonoa-e-invoicing.md) - [All operations](https://skmtc.dev/fonoa/apis/fonoa-e-invoicing/llms.txt) - [OpenAPI document](https://skmtc.dev/fonoa/apis/fonoa-e-invoicing/revisions/d38890cb6fcd?raw)
