---
title: "Remove cursor"
method: DELETE
path: "/_fabric/{fabric}/_api/cursor/{cursor-identifier}"
tags: ["Query"]
---

# Remove cursor

`DELETE /_fabric/{fabric}/_api/cursor/{cursor-identifier}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/cursor/:cursor-identifier/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove the cursor and free the resources associated with it. The cursor is automatically removed on the server when the client has retrieved all documents from it. The client can also explicitly remove the cursor at any earlier time using a HTTP DELETE request. The cursor *ID* must be included as part of the URL.

**Note**: The server automatically removes abandoned cursors after a period of time specified by the *ttl* attribute when the cursor was created.

## Path parameters

- `fabric` string, string, required
- `cursor-identifier` string, string, required

## Response `202`

Successfully removed the cursor.

- object
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `id` string: Id of cursor

## Other responses

- `404`: Failed to find the specified cursor.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
