---
title: "Remove an firmware template"
method: POST
path: "/templates/phones/{filename}/destroy"
tags: ["Auto Provisioning"]
---

# Remove an firmware template

`POST /templates/phones/{filename}/destroy`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/templates/phones/{filename}/destroy`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/templates/phones/:filename/destroy/post.ts> (a function with typed inputs; its response is checked against the schema)

Remove custom template by it's filename.

## Path parameters

- `filename` string, required: Template XML file name for phone provisioning.

## Response `204`

No Content

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
