# Questions about the DHT update mechanism

**URL:** <https://discuss.ipfs.tech/t/questions-about-the-dht-update-mechanism/12908>\
**Category:** Help\
**Tags:** dht\
**Created:** [December 10, 2021, 11:52am UTC](https://discuss.ipfs.tech/t/questions-about-the-dht-update-mechanism/12908 "2021-12-10T11:52:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scut](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@scut](https://discuss.ipfs.tech/u/scut)\
**Post date:** [December 10, 2021, 11:52am UTC](https://discuss.ipfs.tech/t/questions-about-the-dht-update-mechanism/12908/1 "2021-12-10T11:52:31Z")

</div>

If I upload a file and declare to the whole network that I have the file (write the root hash to DHT), and I quit the network some time later (no other node has saved my file before), how does DHT remove the invalid entry? Is it deleted when another node requests the root hash or is there some other mechanism?

---

<div class="post-metadata">

**Author:** ![Jorropo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jorropo/32/3230_2.png) [@Jorropo](https://discuss.ipfs.tech/u/Jorropo)\
**Post date:** [December 10, 2021, 12:12pm UTC](https://discuss.ipfs.tech/t/questions-about-the-dht-update-mechanism/12908/2 "2021-12-10T12:12:03Z")

</div>

Provider records expires after some time (I belive the default is 2hours).  
While you are online each 2hours (or how long the time is actually) you keep resending thoses records. If you don’t they stop working.

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [December 10, 2021, 12:17pm UTC](https://discuss.ipfs.tech/t/questions-about-the-dht-update-mechanism/12908/3 "2021-12-10T12:17:51Z")

</div>

Default is 24 hours I think. With default republishing period being 12h in go-ipfs.

---

<div class="post-metadata">

**Author:** ![scut](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@scut](https://discuss.ipfs.tech/u/scut)\
**Post date:** [December 10, 2021, 2:29pm UTC](https://discuss.ipfs.tech/t/questions-about-the-dht-update-mechanism/12908/4 "2021-12-10T14:29:04Z")

</div>

I see. Thank you very much
