Loki Docs
Tools › Check-ins › Undo a check-in

Undo a check-in

undo_checkinChanges
What it does
Changes or deletes something you had. Your assistant can ask you to confirm first. Safe to retry: the same call twice changes nothing more.
Permission
Check-ins, change checkins:write

What your assistant is told

Remove a single check-in by its checkin_id (from log_checkin's result or get_checkins_in_range). Use this when the user says they logged something by mistake. Check-ins are discrete entries and a day may hold MANY of them, so this removes one entry — not "the day". If the user drank six glasses in six check-ins and misreported one, delete that one; the day's total drops by that amount and the day may well still be met. When it is ambiguous which entry they mean, call get_checkins_in_range for that day and ask.

Parameters

  • checkin_idid, requiredThe id of the check-in to remove.