# Does Hangfire clear down old job data?

**URL:** <https://discuss.hangfire.io/t/does-hangfire-clear-down-old-job-data/2294>\
**Category:** feature\
**Tags:** sql-server\
**Created:** [August 9, 2016, 3:55pm UTC](https://discuss.hangfire.io/t/does-hangfire-clear-down-old-job-data/2294 "2016-08-09T15:55:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesatgreymetis](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/jamesatgreymetis/32/705_2.png) [@jamesatgreymetis](https://discuss.hangfire.io/u/jamesatgreymetis)\
**Post date:** [August 9, 2016, 3:55pm UTC](https://discuss.hangfire.io/t/does-hangfire-clear-down-old-job-data/2294/1 "2016-08-09T15:55:17Z")

</div>

I assume that Hangfire clears down these tables once a job has been Succeeded or jobs that have been Deleted?  
HangFire.Job  
HangFire.JobParameter  
HangFire.State

If so what are the conditions that trigger it? I have been playing with Hangfire and have a lot of completed jobs in the DB which have not been deleted. I have searched the source and not been able to answer my question.

---

<div class="post-metadata">

**Author:** ![hometoast](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/hometoast/32/688_2.png) [@hometoast](https://discuss.hangfire.io/u/hometoast)\
**Post date:** [August 12, 2016, 1:58pm UTC](https://discuss.hangfire.io/t/does-hangfire-clear-down-old-job-data/2294/2 "2016-08-12T13:58:34Z")

</div>

SqlServerJobStorage has its own ExpirationManager that it runs each hour.

---

<div class="post-metadata">

**Author:** ![jamesatgreymetis](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/jamesatgreymetis/32/705_2.png) [@jamesatgreymetis](https://discuss.hangfire.io/u/jamesatgreymetis)\
**Post date:** [August 12, 2016, 2:25pm UTC](https://discuss.hangfire.io/t/does-hangfire-clear-down-old-job-data/2294/3 "2016-08-12T14:25:15Z")

</div>

@hometoast perfect thanks, that’s what I was looking for

Link added for brevity:

> <https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.SqlServer/SqlServerStorageOptions.cs#L38>
