KILL
KILL statement
The KILL statement is used to terminate a running live query.
While the KILL statement does accept a value type, this value must resolve to a UUID. Consequently, it will accept a string literal of a UUID or a param.
Statement syntax
SurrealQL Syntax
KILL @value;
Example usage
Basic usage
The KILL statement expects the UUID of a running live query to be passed.
KILL "0189d6e3-8eac-703a-9a48-d9faa78b44b9";
The KILL statement also allows for parameters to be used.
-- Define the parameter
LET $live_query_id = "0189d6e3-8eac-703a-9a48-d9faa78b44b9";
-- Use the parameter
KILL $live_query_id;