--- acl_categories: - '@read' - '@search' arguments: - name: index type: string - name: cursor_id type: integer categories: - docs - develop - stack - oss - rs - rc - oss - kubernetes - clients complexity: O(1) description: Deletes a cursor group: search hidden: false linkTitle: FT.CURSOR DEL module: Search railroad_diagram: /images/railroad/ft.cursor-del.svg since: 1.1.0 stack_path: docs/interact/search-and-query summary: Deletes a cursor syntax_fmt: FT.CURSOR DEL index cursor_id title: FT.CURSOR DEL --- Delete a cursor [Examples](#examples) ## Required arguments
index is index name.
cursor_id is id of the cursor.
## Examples
Delete a cursor {{< highlight bash >}} redis> FT.CURSOR DEL idx 342459320 OK {{< / highlight >}} Check that the cursor is deleted. {{< highlight bash >}} 127.0.0.1:6379> FT.CURSOR DEL idx 342459320 (error) Cursor does not exist {{< / highlight >}}
## Redis Software and Redis Cloud compatibility | Redis
Software | Redis Cloud
Flexible & Annual | Redis Cloud
Free & Fixed | Notes | |:----------------------|:-----------------|:-----------------|:------| | ✅ Supported | ✅ Supported | ✅ Supported | | ## Return information {{< multitabs id="ft-cursor-del-return-info" tab1="RESP2" tab2="RESP3" >}} One of the following: * [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if executed correctly. * [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: cursor does not exist. -tab-sep- One of the following: * [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if executed correctly. * [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: cursor does not exist. {{< /multitabs >}} ## See also [`FT.CURSOR READ`]({{< relref "commands/ft.cursor-read/" >}}) ## Related topics [RediSearch]({{< relref "/develop/ai/search-and-query/" >}})