# Add "removeInterval(intervalID)" and "removeTimeout(timeoutID)"

**URL:** <https://es.discourse.group/t/add-removeinterval-intervalid-and-removetimeout-timeoutid/1912>\
**Category:** 💡 Ideas\
**Created:** [January 29, 2024, 10:12am UTC](https://es.discourse.group/t/add-removeinterval-intervalid-and-removetimeout-timeoutid/1912 "2024-01-29T10:12:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaroslav.tavgen](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/jaroslav.tavgen/32/2732_2.png) [@jaroslav.tavgen](https://es.discourse.group/u/jaroslav.tavgen)\
**Post date:** [January 29, 2024, 10:12am UTC](https://es.discourse.group/t/add-removeinterval-intervalid-and-removetimeout-timeoutid/1912/1 "2024-01-29T10:12:37Z")

</div>

I would like to suggest to add global function "removeInterval" which would perform exact same thing as "clearInterval" and global function "removeTimeout" which would perform exactly as "clearTimeout"

In my opinion, "remove..." is much more intuitive name than "clear...". Funny enough, this name is more clear:) We already have a construction "addEventListener" - "removeEventListener".

I've just written a program where I was using this feature for the first time and I intuitively wrote "removeInterval" being 99% sure this is correct function name. Little did I know...

"deleteInterval" and "deleteTimeout" could be added as well.

---

<div class="post-metadata">

**Author:** ![ljharb](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/ljharb/32/8_2.png) [@ljharb](https://es.discourse.group/u/ljharb)\
**Post date:** [January 29, 2024, 3:04pm UTC](https://es.discourse.group/t/add-removeinterval-intervalid-and-removetimeout-timeoutid/1912/2 "2024-01-29T15:04:29Z")

</div>

Those functions aren’t in the language, they’re in HTML, and typically we’d avoid just adding aliases for things anyways.
