# About data expiration

**URL:** <https://discuss.dgraph.io/t/about-data-expiration/17753>\
**Category:** Dgraph\
**Tags:** dgraph\
**Created:** [September 9, 2022, 6:18pm UTC](https://discuss.dgraph.io/t/about-data-expiration/17753 "2022-09-09T18:18:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![may11544](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/may11544/32/10004_2.png) [@may11544](https://discuss.dgraph.io/u/may11544)\
**Post date:** [September 9, 2022, 6:18pm UTC](https://discuss.dgraph.io/t/about-data-expiration/17753/1 "2022-09-09T18:18:10Z")

</div>

Does dgraph support the data expiration mechanism? Because the data we need to store may be time-sequential. At present, I have not seen the TTL setting from the official website.

---

<div class="post-metadata">

**Author:** ![amaster507](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amaster507/32/4123_2.png) [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Post date:** [September 9, 2022, 6:30pm UTC](https://discuss.dgraph.io/t/about-data-expiration/17753/2 "2022-09-09T18:30:08Z")

</div>

No, there is no TTL from the data aspect. You would have to manually clean up the data using either the SPO SP\* or S\*\* methods.

I’m assuming that your date sequence would be a valye (O in the SPO model) so you would have to do an upsert to gather and delete the data you want to “clean-up”

---

<div class="post-metadata">

**Author:** ![may11544](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/may11544/32/10004_2.png) [@may11544](https://discuss.dgraph.io/u/may11544)\
**Post date:** [January 6, 2023, 5:52am UTC](https://discuss.dgraph.io/t/about-data-expiration/17753/3 "2023-01-06T05:52:20Z")

</div>

Thank you very much.
