---
title: Deleting media library files
related:
  - https://docs.kentico.com/13/managing-website-content/working-with-files/page-attachments/deleting-page-attachments.md
  - https://docs.kentico.com/13/configuring-xperience/configuring-the-environment-for-content-editors/configuring-media-libraries.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

You can delete files from media libraries directly in the **Media libraries**  application.

## To delete media library files

1. Open the **Media libraries** application.
2. **Edit**() the **Media library** that contains the files that you want to delete.
3. Click on **Delete** () next to the file that you want to delete.\
   – OR –
4. Select the files that you want to delete and use the second drop-down list under the files to choose **Delete**. Then press **OK**.

> **Tip:** **Viewing the usage of media files**
>
> You can view a list of objects where a media file is used before you delete the file. For more information, see [Viewing media files usage](https://docs.kentico.com/13/managing-website-content/working-with-files/media-library-files/viewing-media-files-usage.md).

The system deletes the media library files. For restoring deleted media library files, use the **Objects** tab in the **Recycle bin** application.
