# Clear Table Script?

**URL:** <https://cl.desmos.com/t/clear-table-script/532>\
**Category:** Questions\
**Created:** [July 14, 2019, 10:10pm UTC](https://cl.desmos.com/t/clear-table-script/532 "2019-07-14T22:10:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrabourn](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@mrabourn](https://cl.desmos.com/u/mrabourn)\
**Post date:** [July 14, 2019, 10:10pm UTC](https://cl.desmos.com/t/clear-table-script/532/1 "2019-07-14T22:10:26Z")

</div>

I want a student to be able to enter table data, then, when button is pressed, clear the table. I can’t find it in the documentation.

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [July 14, 2019, 11:09pm UTC](https://cl.desmos.com/t/clear-table-script/532/2 "2019-07-14T23:09:02Z")

</div>

Ooooh, unfortunately not currently possible.

---

<div class="post-metadata">

**Author:** ![mrabourn](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@mrabourn](https://cl.desmos.com/u/mrabourn)\
**Post date:** [July 15, 2019, 12:41am UTC](https://cl.desmos.com/t/clear-table-script/532/3 "2019-07-15T00:41:53Z")

</div>

Then, as a work around, how about, when clicking on a button, the filled table cells are all reset to (0,0)?

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [May 18, 2021, 10:11pm UTC](https://cl.desmos.com/t/clear-table-script/532/4 "2021-05-18T22:11:08Z")

</div>

This is possible now! resetOnChange works in tables the same way it works in math inputs.

Note: This will clear _all_ student work in a table, not just a particular cell
