# Managing PDFs

Sometimes you may want to edit the PDF information that your chatbot is trained on. This tutorial demonstrates how to delete and add PDFs into your chatbot.

***

## Step 1: Go to the chatbots page and click on the edit button

* You can find the edit button located within the column stated “**Files Indexed**”

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

## Step 2: To Add or Delete PDF Files

### **Adding PDFs to Your Chatbot**

1. **Choose the Add Option**:
   * Click on the **Add** button, which allows you to upload new files to your chatbot.
2. **Upload a PDF File**:
   * Select **Upload File** from the options.
   * Click the **Upload File** button.
   * A file browser will open where you can select the PDF file you want to upload from your device. Wonderchat supports various formats, including PDFs, so make sure your document is in a supported format.
3. **Confirm the Upload**:

   * After selecting the file, click the **Confirm** button to finalize the upload (as shown at the bottom right of the first image).
   * The file will now be stored in your chatbot's database and available for use.

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

### **Deleting PDFs from Your Chatbot**

1. **Select the Delete Option**:
   * If you wish to remove a PDF, go to the **Edit Files** section and select the **Delete** option (as shown in the second image).
2. **Choose the File to Delete**:
   * You will see a list of files currently stored in your chatbot. Locate the PDF you want to remove.
   * Click on the **Trash Bin Icon** next to the file name (highlighted with a red arrow in the second image).
3. **Confirm the Deletion**:

   * Once you’ve selected the file to delete, click the **Confirm** button (at the bottom right of the second image) to remove it from your chatbot’s file list.

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

## Summary

* **To Add PDFs**: Click on the **Add** button, upload the PDF, and confirm.
* **To Delete PDFs**: Select **Delete**, choose the file, and confirm the action.

By following these steps, you can efficiently manage the PDF files available to your chatbot in Wonderchat.

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>


---

# 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.wonderchat.io/setup-guides/training-your-chatbot/how-to-add-or-delete-pdfs-from-your-chatbot.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.
