For an existing Query, TERMINATE QUERY will stop and delete the Query specified by query_id. Note that this does not delete any Entity or Relation created by the Query. Also note that once a Query is terminated, it is deleted and cannot be restarted. A terminated Query must be recreated using one of the Query statements.
TERMINATE QUERY cannot be undone. Use it with care!
See LIST QUERIES for accessing terminated queries.
Queries will only be visible if the current Role has USAGE privileges on them.
Arguments
query_id
This is the unique identifier of the Query to terminate. See LIST QUERIES to find out how to list all Queries that the user has access to. The first column (ID) in the response corresponds with the query_id.
query_name
This is the name of the Query to terminate. See LIST QUERIES to find out how to list all Queries that the user has access to. The column (Name) in the response corresponds with the query_name. The query_version property disambiguates between multiple queries with the same name.
query_version
This is the version of the Query to terminate. See LIST QUERIES to find out how to list all Queries that the user has access to. The column (Version) in the response corresponds with the query_version. If query_name is provided without a query_version, the latest query_version will be used.
Examples
Terminate a Query
The following is an example of how to terminate a Query. Note the ID from LIST QUERIES is the same as the query_id used in TERMINATE QUERY.