# Entity retention in Grail

**URL:** <https://community.dynatrace.com/t/entity-retention-in-grail/45594>\
**Category:** DQL\
**Tags:** dql\
**Created:** [May 15, 2024, 9:30am UTC](https://community.dynatrace.com/t/entity-retention-in-grail/45594 "2024-05-15T09:30:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [May 15, 2024, 9:30am UTC](https://community.dynatrace.com/t/entity-retention-in-grail/45594/1 "2024-05-15T09:30:03Z")

</div>

Hello,

Does anybody know when a (smartscape) entity is removed from grail? I would expect after 72 hours. And are all relations to it automatically removed?

KR Henk

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [May 15, 2024, 9:53am UTC](https://community.dynatrace.com/t/entity-retention-in-grail/45594/2 "2024-05-15T09:53:54Z")

</div>

Sorry,

There is an “attribute” for this:

 ![henk_stobbe_0-1715766823257.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a55dba70ff631f9ffb7932f5c643eb6f6df97cec.png)

KR Henk

---

<div class="post-metadata">

**Author:** ![Christophe\_N](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@Christophe\_N](https://community.dynatrace.com/u/Christophe_N)\
**Post date:** [May 15, 2024, 11:53am UTC](https://community.dynatrace.com/t/entity-retention-in-grail/45594/3 "2024-05-15T11:53:06Z")

</div>

Hi,

the lifetime field for an entity is the life information of the entity itself (cf doc&nbsp; :&nbsp;The first and last observation timestamp of an entity is stored in the lifetime field)

For your question how long is it stored in Grail , I have no idea indeed , no idea how long the topology object keeps existing in grail

BR ,

Christophe

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [May 18, 2024, 9:07am UTC](https://community.dynatrace.com/t/entity-retention-in-grail/45594/4 "2024-05-18T09:07:45Z")

</div>

Hi Christoph,

Thanks for your reply, lets assume they live forever (-; and you can filter what you want from above attributes!

KR HEnk
