# Adding and removing manual redactions

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 view, to change to redaction mode, click **Add Redaction**.

<figure><img src="/files/GTANxLJavneHAez2itcr" 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/OofYL8zPEPjJ72xEZIij" 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/PiyaxSnG4iIZJykQoFKg" 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/C6yff3jsti1u2VTCPgzd" 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: 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://docs.tonic.ai/textual/datasets-preview-output/dataset-file-preview/file-preview-redacted-file/adding-and-removing-manual-redactions.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.
