Anchorage API reference
    Preparing search index...

    Function purgeExpiredNotifications

    • Notification TTL cleanup: deletes terminal agent-inbox rows from mastra_notifications once their updatedAt is older than the TTL, at the storage layer so a cron reaps them without a live agent — the same posture as the other purges (raw D1 binding, failure-isolated as a cron duty). updatedAt is ISO-8601 TEXT, so lexicographic < is a correct timestamp comparison. A missing table reads as zero (notifications may never have been sent). Scheduling stays with the caller.

      Returns Promise<number>