---
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 ``workspace_id`` and ``user_id`` for the same reason the upsert is:
deleting one workspace's alias must not touch another's, deleting the
workspace-wide alias must not take a user's override with it, and deleting an
override must leave the workspace-wide 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 workspace-wide alias of that name.
- `workspace_id` string, uuid, nullable — Delete the alias in this workspace. Omit for the deployment's default workspace.

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-25** `daef1d31b5d1` — 1 info
  - added the new optional `query` request parameter `workspace_id`
- **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-service-production.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/7f178e92b56c/schema)
