# selection.releaseSnapshot

> Release a retained exact-selection snapshot without changing document content or Undo history. Available on v2-backed sessions only; v1-backed sessions currently return `CAPABILITY_UNAVAILABLE`.



- Member path: `doc.selection.releaseSnapshot(…)`
- Mutates document: no
- Idempotency: `idempotent`
- Supports tracked mode: no
- Supports dry run: no

## Expected result

Returns released=true when a same-session handle was removed; otherwise false.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {
    "snapshotId": {
      "type": "string",
      "minLength": 1
    }
  },
  "additionalProperties": false,
  "required": [
    "snapshotId"
  ]
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {
    "released": {
      "type": "boolean"
    }
  },
  "additionalProperties": false,
  "required": [
    "released"
  ]
}
```

## Pre-apply throws

- `CAPABILITY_UNAVAILABLE`
- `INVALID_INPUT`

## Non-applied receipt codes

- None

