# Delete DVR if exceeds 30 hours

**URL:** <https://community.wowza.com/t/delete-dvr-if-exceeds-30-hours/93823>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-server-java-api, recording, rest-api\
**Created:** [September 15, 2021, 8:19am UTC](https://community.wowza.com/t/delete-dvr-if-exceeds-30-hours/93823 "2021-09-15T08:19:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chi\_nk](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@chi\_nk](https://community.wowza.com/u/chi_nk)\
**Post date:** [September 15, 2021, 8:19am UTC](https://community.wowza.com/t/delete-dvr-if-exceeds-30-hours/93823/1 "2021-09-15T08:19:01Z")

</div>

nDVR has a recording limit of 30 hours.  
When checking, if it exceeds 30 hours, the saved file is no longer correct. I have to delete the old ones to save new files. But how to delete those old dvr, Is there any function or API that can delete them. Because it can’t be deleted manually.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 15, 2021, 8:14pm UTC](https://community.wowza.com/t/delete-dvr-if-exceeds-30-hours/93823/2 "2021-09-15T20:14:09Z")

</div>

Unfortunately, there is no way to do that through the API and it would require custom work.

You could write a bash script or you could create an archive strategy.

[https://www.wowza.com/docs/wowza-ndvr-quick-start-guide?392-Wowza-nDVR-Quick-Start-Guide#archiveStrategy](https://www.wowza.com/docs/wowza-ndvr-quick-start-guide?392-Wowza-nDVR-Quick-Start-Guide#archiveStrategy)

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [September 24, 2021, 9:52am UTC](https://community.wowza.com/t/delete-dvr-if-exceeds-30-hours/93823/3 "2021-09-24T09:52:55Z")

</div>

What do you mean by - it cannot be deleted manually ?
