# Automated Actions

This section describes the various actions that Nightfall takes automatically when a violation is detected. You must turn on the toggle switch to enable an action. The automated action is permanent and cannot be reversed once applied. You can also use the delayed remediation feature to set the timeline as to when an action must be taken. You can either choose to apply the automated action immediately after detecting a violation or after some time.&#x20;

The various automated actions are described as follows.

**Delete Document**: This action deletes the file that contains sensitive data. You cannot revert this action once it is applied automatically. You must also configure this automated action after a certain time period has elapsed. The delayed remediation feature allows you to set a time period. The automated action is applied only after the set time period has elapsed. Alternatively, you can also choose to apply the action immediately.

<figure><img src="/files/Ty2CToCJjLkptxgcGMMK" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.nightfall.ai/audit/onedrive-audit/automated-actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
