---
title: "Delete Alias"
method: DELETE
path: "/v1/aliases/{name}"
tags: ["aliases"]
---

# Delete Alias

`DELETE /v1/aliases/{name}`

Delete a stored alias in one scope.

Scoped by ``user_id`` for the same reason the upsert is: deleting the global
alias must not take a user's override with it, and deleting an override must
leave the global one serving everyone else.

## Path parameters

- `name` string, required

## Query parameters

- `user_id` string, nullable — Delete the alias scoped to this user. Omit to delete the global alias of that name.

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-31** `7437535331c5` — 1 info
  - added the new optional `query` request parameter `user_id`
- **2026-07-20** `d9a87177ce4a` — 1 info
  - the endpoint scheme security `XApiKeyAuth` was added to the API
- **2026-07-17** `db57bd46e3eb` — 1 info
  - endpoint added
- **2026-04-17** `0f43605bdc13` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/aliases/:name/delete.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc.dev/mozilla-ai/apis/otari/revisions/c05befed4db4?raw)
