FT.CURSOR DEL

Available in:
Redis Stack / Search 1.1.0
Time complexity:
O(1)

Delete a cursor

Syntax

FT.CURSOR DEL index cursor_id

Examples

Required parameters

index

is index name.

cursor_id

is id of the cursor.

Returns

FT.CURSOR DEL returns a simple string reply OK if executed correctly, or an error reply otherwise.

Examples

Delete a cursor
redis> FT.CURSOR DEL idx 342459320
OK

Check that the cursor is deleted.

127.0.0.1:6379> FT.CURSOR DEL idx 342459320
(error) Cursor does not exist

See also

FT.CURSOR READ

RediSearch

Feedback

If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.