# How does cumulocity store binaries for events?

**URL:** <https://community.cumulocity.com/t/how-does-cumulocity-store-binaries-for-events/2064>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [August 11, 2022, 5:28am UTC](https://community.cumulocity.com/t/how-does-cumulocity-store-binaries-for-events/2064 "2022-08-11T05:28:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![artur.toews](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@artur.toews](https://community.cumulocity.com/u/artur.toews)\
**Post date:** [August 11, 2022, 5:28am UTC](https://community.cumulocity.com/t/how-does-cumulocity-store-binaries-for-events/2064/1 "2022-08-11T05:28:49Z")

</div>

Hello,

I played with the operation `c8y_UploadConfigurationFile` and figured out, that each response uploads a new binary via  
`POST <<url>>/event/events/<<eventId>>/binaries`.

How long do they remain in cumulocity? Or are they cluttering up the platform?

Artur

---

<div class="post-metadata">

**Author:** ![Christian\_Guether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_guether1/32/14848_2.png) [@Christian\_Guether1](https://community.cumulocity.com/u/Christian_Guether1)\
**Post date:** [August 11, 2022, 6:51am UTC](https://community.cumulocity.com/t/how-does-cumulocity-store-binaries-for-events/2064/2 "2022-08-11T06:51:16Z")

</div>

Hi Artur,

Cumulocity provides the functionality to create [retention rules](https://cumulocity.com/guides/users-guide/administration/#data-retention), which define when specific domain objects should be deleted. But they don’t apply for anything which is stored in the file repository or the inventory. Therefore, files remain in Cumulocity as long as you don’t delete them.

Best regards  
Christian

---

<div class="post-metadata">

**Author:** ![Kai\_Sieben](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/kai_sieben/32/5541_2.png) [@Kai\_Sieben](https://community.cumulocity.com/u/Kai_Sieben)\
**Post date:** [August 11, 2022, 7:14am UTC](https://community.cumulocity.com/t/how-does-cumulocity-store-binaries-for-events/2064/3 "2022-08-11T07:14:30Z")

</div>

Hi Artur, Hi Christian,

event-binaries get deleted as soon as the related event gets deleted as well, either when manually deleted or deleted through retention rules.

Regards Kai

---

<div class="post-metadata">

**Author:** ![Christian\_Guether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_guether1/32/14848_2.png) [@Christian\_Guether1](https://community.cumulocity.com/u/Christian_Guether1)\
**Post date:** [August 11, 2022, 7:53am UTC](https://community.cumulocity.com/t/how-does-cumulocity-store-binaries-for-events/2064/4 "2022-08-11T07:53:47Z")

</div>

Thanks for the correction, Kai.

@artur.toews in this case, you can use retention rules and define the time interval how long the `c8y_UploadConfigurationFile` events and their corresponding files should be stored in Cumulocity.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [February 7, 2023, 7:54am UTC](https://community.cumulocity.com/t/how-does-cumulocity-store-binaries-for-events/2064/5 "2023-02-07T07:54:33Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
