# Can't use world.time.clearInterval()

**URL:** <https://forum.8thwall.com/t/cant-use-world-time-clearinterval/3842>\
**Category:** Technical Support\
**Created:** [December 4, 2024, 2:39pm UTC](https://forum.8thwall.com/t/cant-use-world-time-clearinterval/3842 "2024-12-04T14:39:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ontop\_Studios1](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Ontop\_Studios1](https://forum.8thwall.com/u/Ontop_Studios1)\
**Post date:** [December 4, 2024, 2:39pm UTC](https://forum.8thwall.com/t/cant-use-world-time-clearinterval/3842/1 "2024-12-04T14:39:58Z")

</div>

Trying to use world.time.clearInterval like so but it gives an error saying clearIntervaldoes not exist

 ![image](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/0/063053bdfa948660ba9536b5a7b9758a3df77414.png)

This is done in side a state machine of a component, setTimeout and setInterval work fine, what is wrong with my code?

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [December 4, 2024, 10:37pm UTC](https://forum.8thwall.com/t/cant-use-world-time-clearinterval/3842/2 "2024-12-04T22:37:00Z")

</div>

Hi! It should be `world.time.clearTimeout`, clearTimeout is used for both Intervals and Timeouts.

---

<div class="post-metadata">

**Author:** ![Ontop\_Studios1](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Ontop\_Studios1](https://forum.8thwall.com/u/Ontop_Studios1)\
**Post date:** [December 5, 2024, 10:52am UTC](https://forum.8thwall.com/t/cant-use-world-time-clearinterval/3842/3 "2024-12-05T10:52:56Z")

</div>

Hey! Thanks so much, that works perfectly! Just a heads-up—it might be worth giving the [documentation](https://www.8thwall.com/docs/studio/api/world/time/) a quick update so future folks don’t run into the same problem I did 🙂 .

 ![image](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/2/22f47ce264c04ede7180ec503f09b73316e8906d.png)
