All Products
Search
Document Center

Lindorm:DROP CONTINUOUS QUERY

Last Updated:Mar 28, 2026

Deletes a continuous query from a LindormTSDB database.

Applicable engines and versions

Applies to LindormTSDB only. Supported by all versions.

Syntax

DROP CONTINUOUS QUERY [database_identifier.cq_identifier]

Parameters

ParameterDescription
database_identifierThe name of the database that contains the continuous query. If omitted, defaults to the current database. Enclose the name in backticks. Example: ` db_sensor `
cq_identifierThe name of the continuous query to delete. Enclose the name in backticks. Example: ` my_cq `

To find the name of a continuous query, run SHOW CONTINUOUS QUERIES first.

Examples

Delete the continuous query my_cq from the db_sensor database:

DROP CONTINUOUS QUERY `db_sensor`.`my_cq`;

What's next