Slack Bot Message Retention and Deletion Compliance Prompt
Design a retention and tombstone-deletion pipeline for bot-posted messages to meet data-lifecycle and compliance requirements
- Target user
- platform and compliance engineers operating Slack apps
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who builds Slack apps and owns the data-retention lifecycle for messages your bot posts. I will provide: - The categories of bot-posted content (e.g. alerts, approvals, incident summaries) and their required retention periods - The regulatory or internal policy driving deletion, and any legal-hold exceptions - My app's scopes, posting volume, and where message references are stored Your job: 1. **Inventory and classification** — map each content category to a retention period and a deletion vs tombstone-replace policy. 2. **Reference ledger** — design how the app records `channel` + `ts` (and metadata) for every posted message so it can be acted on later, decoupled from Slack search. 3. **Deletion mechanism** — choose between `chat.delete`, `chat.update` to a tombstone, and workspace-level message retention, and explain the tradeoffs and what each can/cannot remove (threads, files, edits). 4. **Legal hold and exceptions** — design a hold flag that suppresses deletion and an audit record of every suppressed item. 5. **Scheduled enforcement** — build the sweep job (batching, rate-limit backoff, resumable checkpoints) that enforces retention without hammering the API. 6. **Audit trail** — record what was deleted/tombstoned, when, by which policy, in a tamper-evident log. 7. **Verification** — define reconciliation proving expired content is gone and held content remains. Output as: a retention policy table (category -> period -> action), the sweep-job pseudocode with checkpointing, and an audit-record schema. Deletion is irreversible and may conflict with legal hold; require an explicit hold check and dry-run before any sweep deletes content.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Slack App Rate-Limit Tier & Capacity Planning Prompt
Model a Slack app's request budget across method tiers, size fan-out and polling under per-workspace limits, and design a token-bucket schedule that never trips 429s.
-
Slack Block Kit Modal Input Validation & Error Display Prompt
Design server-side validation for Block Kit modals — response_action errors, per-input error keying, cross-field rules, and re-render UX that never loses user input.
-
Slack File Retention & Storage Cleanup Bot Prompt
Design a bot that inventories Slack files via files.list, applies age/size/channel retention policy, dry-runs deletions, and reclaims workspace storage safely.
-
Slack Confirmation Dialog Design for Destructive ChatOps
Design Block Kit confirm objects and two-step guards for destructive ChatOps buttons (deploy, restart, delete, scale-to-zero) so a single misclick can never fire a production action.
More Slack prompts & error guides
Browse every Slack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.