K
Docs
API Reference→Pieces→Cancel Later
🚫

Cancel Later

clock.cancel_laterThe ClocktowerTime

Cancels waiting ⏳ Do It Laters by their tag, so their Later path never runs. Cancelled says how many — {{cancelled.count}}; None means nothing with that tag was waiting. A blank tag cancels nothing, never everything.

When to use this
  • →Inside 🔐 All-or-Nothing, an undone box gives the cancelled Later back

On the canvas

This is what Cancel Later looks like when you place it on your flow. Each field below is something you configure in the inspector panel.

🚫
Cancel Later
clock.cancel_later
Time
tagrequired
e.g. remind:{{input.user.id}}
match
select…
asrequired
cancelled
cancelled
none

Config fields

FieldTypeReqWhat it does
tag
e.g. remind:{{input.user.id}}
textyesTag 🏷️
matchselect—Match 🔍
as
cancelled
textyesSave it as ✨

Sparks this piece adds

After this piece runs, these values are available as sparks in every node downstream.

{{cancelled.count}}numberHow many were cancelled

Output ports

cancelledCalled off — {{cancelled.count}} says how many
noneNothing with that tag was waiting
📐

In TypeScript, this would be…

Not something you need to write — just a look at what Kitcord does for you.

TypeScript
const { changes } = await db.run("DELETE FROM later WHERE tag = ?", [`remind:${userId}`]);
// {{cancelled.count}} — Cancelled ✓, or None ∅ when changes === 0