---
title: "Unmark a session as public"
method: DELETE
path: "/api/v1/cache/{org}/{repo}/session/{sessionId}/share"
tags: ["Session Shares"]
---

# Unmark a session as public

`DELETE /api/v1/cache/{org}/{repo}/session/{sessionId}/share`

Deletes the `session_shares` row. No-op if none exists. Always allowed for repo members, even if repo-level sharing has since been disabled — lets users clean up stale rows.

## Path parameters

- `org` string, required
- `repo` string, required
- `sessionId` string, required

## Query parameters

- `provider` 'gh' | 'et'

## Response `200`

Share disabled (or no-op)

- object
  - `isPublic` boolean, required
  - `shareId` string
  - `cell` string

## Other responses

- `400` — Invalid session ID
- `404` — Repo not found or no access

---

[API](https://skmtc.dev/entire/apis/entire-api.md) · [All operations](https://skmtc.dev/entire/apis/entire-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/entire/entire-api/revisions/c3d737ae064e/schema)
