---
title: "Delete alias-routed session"
method: DELETE
path: "/v2/agent_aliases/{alias_key}/sessions/{session_key}"
tags: ["Agent Aliases"]
---

# Delete alias-routed session

`DELETE /v2/agent_aliases/{alias_key}/sessions/{session_key}`

Deletes a session originally created via this alias.

## Path parameters

- `alias_key` string, required — The unique key that identifies an alias. Alias keys are independent of agent keys. The same string can exist as both an alias key and an agent key in the same customer account. Calls to `/v2/agent_aliases/{key}/...` target the alias. Calls to `/v2/agents/{key}/...` target the agent.
- `session_key` string, required — A unique key that identifies an agent session.

## Headers

- `Request-Timeout` integer
- `Request-Timeout-Millis` integer

## Response `204`

The session is deleted.

## Other responses

- `403` — Permissions do not allow deleting this session.
- `404` — Alias or session not found.

---

[API](https://skmtc.dev/vectara/apis/vectara-rest-api-v2.md) · [All operations](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/revisions/4557c44ba062?raw)
