Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Email SFS Delete Handler
This Lambda function executes daily to clean up orphaned static file service (SFS) attachments. It queries the
email_attachments_sfs table for records where attachment_id is NULL (indicating the attachment is no longer
linked to any email) and publishes delete messages to the SFS delete queue. This triggers the SFS delete worker
to remove the orphaned files from the static file service and clean up the corresponding database records.