# Notify Slack when an R2 object is deleted

Send the bucket, object key and deletion time to your operations channel.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=cloudflare-r2-deletions-to-slack&templateName=Notify+Slack+when+an+R2+object+is+deleted)

**Required accounts**

- Cloudflare R2
- Slack

## Notify Slack when an R2 object is deleted

### 1. Trigger · DeleteObject

**Cloudflare R2**. R2 reports DeleteObject on the selected bucket.

### 2. Action · Send a Slack message

**Slack**. Send text, Block Kit content, attachments, or a thread reply to a channel.

## Set up your workflow

1. **Choose the monitored bucket** Configure R2 deletion notifications to reach FastHook through the queue relay. Use the bucket’s exact name in the trigger.
2. **Connect the operations channel** Select a Slack channel that the bot can post to. Review the message mapping for the bucket name, deleted key and event time.
3. **Delete a disposable test object** Upload a small test object with a distinctive key. Activate the workflow, delete that test object and match the Slack message to the key and deletion time.

## Related integrations

- [Cloudflare R2 integrations](https://www.fasthook.io/apps/cloudflare-r2/integrations)
- [Slack integrations](https://www.fasthook.io/apps/slack/integrations)

## Related workflow templates

- [Announce a new R2 release file in Slack](https://www.fasthook.io/templates/cloudflare-r2-release-pointer-to-kv-and-slack.md): Record the object key from an R2 upload in KV and let your release channel know which file arrived.
