# Manage offline content storage

**URL:** <https://community.bitmovin.com/t/manage-offline-content-storage/1606>\
**Category:** Support\
**Tags:** bitmovin-player, bitmovin\
**Created:** [January 4, 2023, 1:04pm UTC](https://community.bitmovin.com/t/manage-offline-content-storage/1606 "2023-01-04T13:04:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas.alves](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@nicolas.alves](https://community.bitmovin.com/u/nicolas.alves)\
**Post date:** [January 4, 2023, 1:04pm UTC](https://community.bitmovin.com/t/manage-offline-content-storage/1606/1 "2023-01-04T13:04:54Z")

</div>

Hello friends, is there any way to manage the available space for offline content storage? I’m having a problem that when the available space is not enough, it just stops the download and restarts, without knowing the real reason.

Is it possible to know the reason for the error of a download? Or recover the full size of the download, so I can use another code to see if there is space available on the device.

Thanks!

---

<div class="post-metadata">

**Author:** ![lucky.goyal](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/lucky.goyal/32/506_2.png) [@lucky.goyal](https://community.bitmovin.com/u/lucky.goyal)\
**Post date:** [January 4, 2023, 1:28pm UTC](https://community.bitmovin.com/t/manage-offline-content-storage/1606/2 "2023-01-04T13:28:58Z")

</div>

Hi @nicolas.alves , hope you had a good start to the new year. Thanks for your query.

Download failures caused by insufficient storage can be tracked using following error events.

- For Android player SDK , the [OfflineContentManagerListner.onError](https://cdn.bitmovin.com/player/android/3/docs/-player%20-module/com.bitmovin.player.api.offline/-offline-content-manager-listener/on-error.html) event provides a specific error code [InsufficientStorage](https://cdn.bitmovin.com/player/android/3/docs/-player%20-module/com.bitmovin.player.api.deficiency/-offline-error-code/-insufficient-storage/index.html).

- For iOS player SDK, [OfflineContentManagerListener.onOfflineError](https://cdn.bitmovin.com/player/ios/3/docs/Protocols/OfflineContentManagerListener.html#/c:@M@BitmovinPlayer@objc(pl)BMPOfflineContentManagerListener(im)onOfflineError:offlineContentManager:) event provides specific error code [insufficientStorage](https://cdn.bitmovin.com/player/ios/3/docs/Enums/BMPOfflineErrorCode.html#/c:@E@BMPOfflineErrorCode@BMPOfflineErrorCodeInsufficientStorage) for this case.

Above events can be you identify failures due to storage space and then take preventive/corrective actions to inform user about same. Please let us know if there are any further questions.
