Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for Slack Difficulty: Advanced ClaudeChatGPT

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

More Slack prompts & error guides

Browse every Slack prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.