Photos in Ajax applications are deleted after 2 years or 500 events, depending on what comes first.
For companies, you can set a period of time after which all media files (images, video from cameras) will be deleted. To do this, in PRO Desktop:
- Go to the Company module.
 - Open the Services settings menu.
 - In the Objects full access field, click Media files storing period.
 - Set a required period from 7 days to 2 years.
 
When you change the storing period, it is applied only to the new files.