> For the complete documentation index, see [llms.txt](https://docs.chamilo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chamilo.org/2.x-nl/beheerdershandleiding/admin-guide/maintenance/archive-cleanup.md).

# Archiefopruiming

Na verloop van tijd verzamelt Chamilo tijdelijke bestanden in de cache- en archiefmappen. Regelmatige opruiming voorkomt problemen met schijfruimte.

## Wat Kan Worden Opgeruimd

* **Symfony cache** — Gecompileerde sjablonen, gecachte configuratie en routeringsgegevens
* **Tijdelijke bestanden** — Bestanden die worden gegenereerd tijdens export, import en andere bewerkingen
* **Sessiedata** — Verlopen PHP-sessiebestanden
* **Logbestanden** — Oude logbestanden die niet langer nodig zijn

## Opruiming Uitvoeren

### Via het Beheerderspaneel

Navigeer naar **Archiefopruiming** in het beheerderspaneel. Klik op de opruimknop om tijdelijke bestanden te verwijderen.

### Via de Opdrachtregel

Voor meer controle kunt u Symfony-consolecommando's gebruiken:

```bash
# Clear the Symfony cache
php bin/console cache:clear

# Clear only the production cache
php bin/console cache:clear --env=prod
```

## Tips

* **Plan regelmatige opruimingen** — Stel een wekelijkse of maandelijkse cron-taak in om tijdelijke bestanden op te ruimen
* **Houd schijfgebruik in de gaten** — Let op de grootte van de map `var/`, aangezien deze groeit met cache- en logbestanden
* **Wees voorzichtig met logs** — Controleer voordat u logbestanden verwijdert of ze informatie bevatten die u mogelijk nodig heeft voor probleemoplossing


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chamilo.org/2.x-nl/beheerdershandleiding/admin-guide/maintenance/archive-cleanup.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.
