> For the complete documentation index, see [llms.txt](https://docs.material.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.material.security/learn-more/risk-areas/file-data-security/bulk-remediate-and-revoke-access-to-files.md).

# Bulk remediate and revoke access to files

[Auto-response and remediation](/getting-started/fundamentals/respond.md) is best practice, but if you need to revoke access manually to files for any reason — do this in the Explorer. Try this example to familiarize yourself with this process:

1. From the workspace left navigation, click **Explorer**, then **Files**.
2. The Explorer uses MQL, a querying language unique to Material. Use the query builder to search for files with issues. In this example, we built the query `shared.externally and location.is_my_drive` with the Explorer tools:

   <figure><img src="/files/VBSFx4aB7KWVOzVFCXu4" alt=""><figcaption></figcaption></figure>
3. Check the boxes for any files you want to revoke access to immediately, then click **Revoke External Access:**

<figure><img src="/files/3CIwSMUKH5ngWcX1PnAX" alt=""><figcaption></figcaption></figure>

4. Select the domain(s) to revoke access to:

<figure><img src="/files/kQ6DhVtDrwRMmRc67UpG" alt="" width="375"><figcaption></figcaption></figure>

5. Optionally, revoke **Set General Access to Restricted:**

<figure><img src="/files/7TcQDu7eux6cLiYfY8mX" alt="" width="375"><figcaption></figcaption></figure>

This updates the Google setting you'd normally set in the file share settings in Google Workspace that looks like this:

<figure><img src="/files/uP2AD1nNiANAQAzPXcsp" alt="" width="344"><figcaption></figcaption></figure>

6. Click **Revoke**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.material.security/learn-more/risk-areas/file-data-security/bulk-remediate-and-revoke-access-to-files.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
