> 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, Word, 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 and Word files**

To add a manual redaction to a text or Word file:

1. In any 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="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Fks6zwiHbezig3TFCZyVG%2FDatasetFilePreviewTextNewRedaction.png?alt=media&amp;token=feec0ea5-e822-44d9-8d39-895147b46760" 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="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FpZy6swRsa4QVEm12KxMd%2FDatasetFilePreviewAddRedaction.png?alt=media&amp;token=eee1d944-94bf-4006-a1b2-f4cd7d500453" 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="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FfEZ9pesZdEnHlXtvHZBF%2FFilePreviewPDFRedactionInitial.png?alt=media&amp;token=99237ae5-d840-4ed4-baaa-e9512b8beb4f" 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="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2F0IolOadNQ2BHnZryeeoF%2FDatasetFilePreviewRedactionDone.png?alt=media&amp;token=5ae710b1-3895-4254-8a60-075b8d9d6d7e" 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="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FEQINbr9bp3sbsmJQL4he%2FDatasetFilePreviewPDFPageManualCount.png?alt=media&amp;token=029459eb-9765-458e-b5b3-69d193d75c62" alt=""><figcaption><p>Manual redaction count for the current page of a PDF</p></figcaption></figure>

## Removing a manual redaction

### **Text or Word files**

To remove a manual redaction from a text or Word file:

1. Click the redaction.
2. Click **Delete**.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FMC0RvckAu31yHS8ErQ7z%2FDatasetFilePreviewTextExistingRedaction.png?alt=media&amp;token=95a44bb2-9bbb-499b-874f-4ceedad23491" 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="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2F1xeDaJYRqeGVy3K8yMCE%2FDatasetFilePreviewPDFDeleteRedaction.png?alt=media&amp;token=24a0c77c-1c51-4695-875d-68fe67b99ca3" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
