CancelScheduledTasksByKey

CancelScheduledTasksByKey(key): int

Will delete scheduled tasks by key

Table 1. Parameters

key

String

Schedule key

Return

Number of deleted scheduled tasks with provided key. Returns 0 without deleting anything if the script security context lacks the Manage all scheduled tasks system access right (see Script Security).

print(CancelScheduledTasksByKey("Key")); //Number of tasks