DROP TASK

Documentation

VoltDB Home » Documentation » Using VoltDB

DROP TASK

DROP TASK — Removes a task and cancels any future execution.

Synopsis

DROP TASK task-name [IF EXISTS]

Description

The DROP TASK statement deletes the specified task and cancels any future execution. The IF EXISTS clause allows the statement to succeed even if the specified task does not exist. If the task does not exist and you do not include the IF EXISTS clause, the statement will return an error.

Examples

The following example removes the task named cleanup:

DROP TASK cleanup;