# Удаление фото людей с неактивными пропусками

**Назначение задачи**

Автоматическое удаление фотографий пользователей, у которых **все пропуска неактивны** (просрочены или отмечены как неактивные).

**Условия удаления фото**

**Фото будет удалено**, если:

* у человека **нет ни одного активного пропуска** (все пропуска либо **просрочены**, либо снята галочка **«Активность»**).

**Фото не будет удалено**, если:

* у человека есть **хотя бы один активный пропуск** (даже если остальные неактивны).
* пропуск был **изъят или удален вручную** (фото остается в системе).

**Как запустить задачу?**

1. **Перейдите в раздел** **«Монитор задач»**.
2. **Выберите задачу** *«Удаление фото людей с неактивными пропусками»*.
3. **Запустите вручную** или настройте **автоматическое выполнение**.


---

# 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.aamsystems.ru/passoffice/passoffice-guide/admin-guide-doc/background-tasks/udalenie-foto-lyudei-s-neaktivnymi-propuskami.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.
