# تنظيف الأرشيف

مع مرور الوقت، يتراكم في Chamilo ملفات مؤقتة في مجلدات التخزين المؤقت والأرشيف. يمنع التنظيف الدوري مشكلات مساحة القرص.

## ما يمكن تنظيفه

* **Symfony cache** — القوالب المترجمة، وتكوين التخزين المؤقت، وبيانات التوجيه
* **الملفات المؤقتة** — الملفات الناتجة أثناء التصدير، والاستيراد، وعمليات أخرى
* **بيانات الجلسة** — ملفات جلسات PHP المنتهية الصلاحية
* **ملفات السجلات** — ملفات السجلات القديمة غير الضرورية بعد الآن

## تنفيذ التنظيف

### من لوحة الإدارة

انتقل إلى **تنظيف الأرشيف** في لوحة الإدارة. انقر على زر التنظيف لإزالة الملفات المؤقتة.

### من سطر الأوامر

للحصول على تحكم أكبر، استخدم أوامر وحدة تحكم Symfony:

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

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

## نصائح

* **جدولة تنظيفات دورية** — قم بإعداد مهمة cron أسبوعية أو شهرية لمسح الملفات المؤقتة
* **مراقبة استخدام القرص** — راقب حجم مجلد `var/`، حيث ينمو مع ملفات التخزين المؤقت والسجلات
* **كن حذراً مع السجلات** — قبل حذف ملفات السجلات، تحقق مما إذا كانت تحتوي على معلومات قد تحتاجها لاستكشاف الأخطاء


---

# 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.chamilo.org/2.x-ar/dlyl-alidarh/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.
