---
title: Deleting document attachments
related:
  - https://docs.kentico.com/k8/managing-website-content/working-with-files/content-tree-files/deleting-content-tree-files.md
  - https://docs.kentico.com/k8/managing-website-content/working-with-files/media-library-files/deleting-media-library-files.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 attached to a document in **Pages -> Properties -> Attachments**.

## To delete files attached to a document

1. Open the **Pages application**.
2. Click on the document to which the files that you want to delete are attached.
3. Switch to **Properties -> Attachments**.
4. Click **Delete** () next to the attachment that you want to delete.

The system deletes the document attachment.
