# How to delete media folders and files?

### Deleting media folders

1\.    To delete a media folder,  [<mark style="color:purple;">**navigate to the Media Folders**</mark>](/media-folders/how-to-access-the-media-folders.md) screen.

2\.    In the **Media folders** pane, against the media folder name to be deleted, click ![](/files/hzPyMXalZOBc9GDZeben) and then click **Delete Directory**.

<figure><img src="/files/rHvBy2zKyjwyL94h1FKo" alt=""><figcaption><p><em>Delete media folder</em></p></figcaption></figure>

The media folder will be deleted and will no longer be displayed in the **Media folders** pane.

### Deleting media files

1\.    To delete a media file,  [navigate to the **Media Directory**](/media-folders/how-to-access-the-media-folders.md) screen.

2\.    In the **Media folders** pane, click the media folder name from which the media file is to be deleted.&#x20;

The media files belonging to the selected folder will be displayed in the right pane.

3\.    In the right pane, select the media files to be deleted and then on the top right of the pane, click **Delete**.

<figure><img src="/files/2zMe20DRNaIymQTnR6Uv" alt=""><figcaption><p><em>Delete Files</em></p></figcaption></figure>

The selected files will be deleted from the **Media Directory**.


---

# 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.senpiper.com/media-folders/how-to-delete-media-folders-and-files.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.
