---
title: "Unshare a run"
method: DELETE
path: "/api/v2/runs/{trace_id}/share"
tags: ["runs"]
---

# Unshare a run

`DELETE /api/v2/runs/{trace_id}/share`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/runs/{trace_id}/share`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Deletes the share token for the trace identified by trace_id and session_id. Idempotent: returns 204 whether or not a share token existed.

Self-hosted deployments require LangSmith `v0.16` or later.

## Path parameters

- `trace_id` string, uuid, required

## Request body

- ShareDeleteShareTokenRequestBody
  - `session_id` string, uuid, required: session_id is the tracing project UUID containing the trace.

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `413`: Request Entity Too Large
- `500`: Internal Server Error

## Changes

- **2026-10-21** `050cb276e1a7`: 1 breaking
  - the request property `session_id` became required
- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/runs/:trace_id/share/delete.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
