---
search:
  tags:
    - Topics
    - DELETE
seo:
  description: >-
    Return the data one session holds for one topic to an offset… Reference for
    the DELETE /v2/topics/id/{topic_id}/unix-offset endpoint in the Roboto REST
    API.
sidebar:
  label: Clear topic unix offset
  badge: DELETE
title: Clear topic unix offset
type: openapi-operation
---
Return the data one session holds for one topic to an offset of 0.

Its stored timestamps are then read as nanoseconds since the Unix epoch with nothing added. The
inverse of :py:func:`set_topic_unix_offset` in every other respect, including which data it
reaches and how declared time ranges follow it back.

Returns the updated timeline extent records.

Clearing yields a 400 when the data has negative timestamps of its own, which offset 0 places before the Unix epoch,
or when a declared time range moved back with its data would start before the epoch.
A concurrent writer adding data to the session yields a 409; retry the request.

#### Access control
 - Restricted tokens need the API scope `api.everything_else`

`DELETE /v2/topics/id/{topic_id}/unix-offset`

**Responses**

- `200` — OK
- `400` — A conversation with Roboto's AI is longer than the AI model can read at once. The conversation's messages and tool results, together with the AI's instructions, exceed the model's context window. The exception does not carry the token count or the model's limit.
- `401` — The caller's token is expired or malformed.
- `403` — The request would take the user or organization past a limit on a resource, such as AI credits.
- `404` — The request names an API route Roboto does not serve.
- `409` — The request conflicts with an existing resource, such as by giving a name another resource already has.
- `410` — The resource the request names is missing or has expired.
- `500` — Roboto reported an error that this release of the SDK cannot match to a specific exception class. Reported for an element of a :py:class:\`\~roboto.http.BatchResponse\` whose error names a code this release defines no class for, or that arrived without a code, without a message, or as text that is not an error envelope at all. It carries whatever code and message Roboto sent, so a caller handling the failure still learns what went wrong; when no message could be read, the message is the error's raw text. :py:meth:\`\~roboto.domain.devices.Device.create\_session\` raises it, and :py:meth:\`\~roboto.domain.devices.Device.create\_sessions\` lists it in the batch's :py:attr:\`\~roboto.http.BatchResponse.failed\`. The error envelope carries no status code, so \`\`http\_status\_code\`\` reports the 500 inherited from \`\`RobotoDomainException\`\` rather than the status the failure had.
- `501` — The request asks for an operation this deployment of Roboto does not provide.
- `503` — Roboto could not accept the request, such as under heavy load. Retrying later may succeed.
- `504` — Roboto ran out of time while processing the request. Retrying may succeed.
- `507` — The response to the request is larger than Roboto can send. Retrying the same request fails the same way; request less data at a time.

Response example, 200:

```json
{
  "data": [
    {
      "created": null,
      "created_by": "string",
      "max_timestamp": null,
      "min_timestamp": null,
      "modified": null,
      "modified_by": "string",
      "org_id": "string",
      "timeline_extent_id": "string",
      "timeline_source_id": "string",
      "topic_part_id": "string",
      "unix_epoch_offset_ns": 0
    }
  ]
}
```
