# Configure Automated Actions in Slack Pro and Slack Business+

This section describes the various actions that Nightfall automatically takes when a violation is detected. To enable an action, you must turn on the toggle switch. Additionally, you can set a timeline for when the action should be taken—either immediately after detecting a violation or after a specified delay.

Currently, Nightfall supports the **Delete Message** and **Delete File** automated actions for the Slack Pro and Business+ editions.

To enable any of the automated actions, you must first turn on the toggle switch. Once the toggle switch is enabled, you can configure the timing for the action. If you select **immediately**, the action is executed as soon as sensitive data is detected.&#x20;

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FxkUmjtpZpSKLs8ok8oDe%2Fimage.png?alt=media&#x26;token=21f29b52-3984-43b0-8831-2b4528697d54" alt=""><figcaption></figcaption></figure>

If you select **After**, you must also set the time frame when the action must be applied, after detecting the sensitive data.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FhLoDvrwFNHPWtGXH4xhA%2Fimage.png?alt=media&#x26;token=adc0495b-aee8-4959-8994-c72e4f37c4bf" alt=""><figcaption></figcaption></figure>

The actions are described as follows.

## Delete Message

This action automatically deletes the Slack message that contains sensitive data.&#x20;

## Delete File

This action automatically deletes the Slack attachments that contains sensitive data.&#x20;
