---
title: "Archive a message template"
method: DELETE
path: "/message-templates/{id}"
tags: ["messageTemplates"]
---

# Archive a message template

`DELETE /message-templates/{id}`

## Request

- Base URL: `https://api.outdoorsy.com/v0`
- URL: `https://api.outdoorsy.com/v0/message-templates/{id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `API-Key`
- TypeScript: <https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/docs/message-templates/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Users can only delete templates they own (or their dealer's templates if they're an employee).

## Path parameters

- `id` integer, required

## Response `204`

Everything went as planned

## Other responses

- `401`: Unauthorized error
- `403`: Forbidden error
- `404`: Not found error

---

[API](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation.md) - [All operations](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/revisions/f0cf8f605ea0?raw)
