> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/textual/datasets-preview-output/dataset-file-preview/file-preview-redacted-file/adding-and-removing-manual-redactions.md).

# Adding and removing manual redactions

{% hint style="info" %}
**Required dataset permission:** Edit file redactions
{% endhint %}

From a text, PDF, and image file preview, you can add manual redactions. When you add a manual redaction, you select the entity type to assign to it.

## Adding manual redactions

### **Text files**

To add a manual redaction to a text file:

1. In original view, select the text to redact.
2. On the redaction panel, from the dropdown list, select the entity type for the redaction.

<figure><img src="/files/65BT8v7JMk076m9uysis" alt=""><figcaption><p>New manual redaction panel in a text file</p></figcaption></figure>

### **PDF and image files**

To add a manual redaction to a PDF or image file:

1. In original or side-by-side view, to change to redaction mode, click **Add Redaction**.

<figure><img src="/files/TNsGlwu7NY6NsxDnlIpT" alt=""><figcaption><p>Add Redaction button for a PDF or image file</p></figcaption></figure>

2. While in redaction mode, to add a redaction:
   1. Draw a box around the content to redact.
   2. On the redaction details panel, from the dropdown list, select the entity type for the redaction.
   3. Click **Add Redaction**.

<figure><img src="/files/zNPePohvCl73AgpOUVE8" alt=""><figcaption><p>Redaction details panel before the entity type is selected</p></figcaption></figure>

3. To exit redaction mode, click **Done**.

<figure><img src="/files/ZxQskjuIRDLpsHrnalFv" alt=""><figcaption><p>Done option to exit redaction mode for a PDF or image file</p></figcaption></figure>

Textual displays the count of manual redactions on the current page.

<figure><img src="/files/mppvFfjpTJr6XylMqmvw" alt=""><figcaption><p>Manual redaction count for the current page of a PDF</p></figcaption></figure>

## Removing a manual redaction

### **Text files**

To remove a manual redaction from a text file:

1. In either de-identified or original view, click the redaction.
2. Click **Delete**.

<figure><img src="/files/5vHcle1A4Fs7Vqr9Zdct" alt=""><figcaption><p>Existing manual redaction for a text file with the Delete option</p></figcaption></figure>

### **PDF and image files**

To remove a manual redaction from a PDF or image file:

1. In either de-identified or original view, click the redaction.
2. Click **Delete Redaction**.

<figure><img src="/files/DB6M7VCFXfBF3FJBzXF0" alt=""><figcaption><p>Existing manual redaction for a PDF file with the Delete Redaction opton</p></figcaption></figure>


---

# 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.tonic.ai/textual/datasets-preview-output/dataset-file-preview/file-preview-redacted-file/adding-and-removing-manual-redactions.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.
