# Can't remove a delete replies topic timer

**URL:** https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503
**Category:** Bug
**Tags:** topic-timers
**Created:** [May 14, 2020, 3:53pm UTC](https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503 "2020-05-14T15:53:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 14, 2020, 3:53pm UTC](https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503/1 "2020-05-14T15:53:04Z")

</div>

Trying to remove a “Delete Replies after days” topic timer from a topic fails:

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/e/2e4f9a30d6f5be31af3e782d806a310f29a4ddd2.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/8/f88dbb6ca6da282133730fc020897aed4494099f.png)

```plaintext
curl 'https://meta.discourse.org/t/151236/timer' --data-raw 'time=&status_type=delete_replies'
{"errors":["param is missing or the value is empty: duration"]}

```

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [May 15, 2020, 2:10pm UTC](https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503/2 "2020-05-15T14:10:15Z")

</div>

Also have this problem. Neither way works to remove it except to refresh page?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 15, 2020, 9:57pm UTC](https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503/3 "2020-05-15T21:57:36Z")

</div>

Should we assign this @eviltrout?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 16, 2020, 8:38am UTC](https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503/4 "2020-05-16T08:38:03Z")

</div>

I think this should be fixed by:

[https://github.com/discourse/discourse/pull/9800](https://github.com/discourse/discourse/pull/9800)

I have asked a review from @vinothkannans as he worked on this. I feel like the spec here should be reworked, we currently randomly test on few types, but we should have a context for each type which would test create/update/delete.

What was happening here, is that we were requiring a duration for delete\_replies type even when removing it, when we actually rely on the fact that duration is nil to remove the timer.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 18, 2020, 9:49am UTC](https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503/6 "2020-05-18T09:49:16Z")

</div>

@Falco this is merged, let me know how it goes for you when you can test it.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 18, 2020, 3:12pm UTC](https://meta.discourse.org/t/cant-remove-a-delete-replies-topic-timer/151503/7 "2020-05-18T15:12:08Z")

</div>


