# Event file (binary) attachment, retention rules?

**URL:** <https://community.cumulocity.com/t/event-file-binary-attachment-retention-rules/14387>\
**Category:** Forum\
**Tags:** platform-services, device-connectivity\
**Created:** [March 19, 2026, 12:52pm UTC](https://community.cumulocity.com/t/event-file-binary-attachment-retention-rules/14387 "2026-03-19T12:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Pester](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/alexander_pester/32/5725_2.png) [@Alexander\_Pester](https://community.cumulocity.com/u/Alexander_Pester)\
**Post date:** [March 19, 2026, 12:52pm UTC](https://community.cumulocity.com/t/event-file-binary-attachment-retention-rules/14387/1 "2026-03-19T12:52:30Z")

</div>

Does Cumulocity also removes the attached file (binary) of an event which gets removed via retention rules? I hope yes, i would like to prevent to much binary data in the mongo db and hope i can solve that with well define retention rules for my events!

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [March 19, 2026, 12:59pm UTC](https://community.cumulocity.com/t/event-file-binary-attachment-retention-rules/14387/2 "2026-03-19T12:59:26Z")

</div>

Yes, that is one of the main reasons why binaries should be attached to events (when possible) instead of uploading them directly via binary API.
