# Delete Row Script/Command?

**URL:** <https://forum.inductiveautomation.com/t/delete-row-script-command/10271>\
**Category:** Ignition\
**Created:** [July 24, 2015, 3:27pm UTC](https://forum.inductiveautomation.com/t/delete-row-script-command/10271 "2015-07-24T15:27:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alewayhar](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@alewayhar](https://forum.inductiveautomation.com/u/alewayhar)\
**Post date:** [July 24, 2015, 3:27pm UTC](https://forum.inductiveautomation.com/t/delete-row-script-command/10271/1 "2015-07-24T15:27:09Z")

</div>

Is there a script command that will allow me to easily delete the selected row of a table? I just want a button that will delete the selected row of a table and I’m assuming there’s a simple command to do so that I do not know. Any help? Thanks in advance, this forum is super helpful! ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 24, 2015, 3:39pm UTC](https://forum.inductiveautomation.com/t/delete-row-script-command/10271/2 "2015-07-24T15:39:17Z")

</div>

```auto
table = event.source.parent.getComponent('Power Table')
row = table.selectedRow
table.data = system.dataset.deleteRow(table.data, row)
```

---

<div class="post-metadata">

**Author:** ![alewayhar](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@alewayhar](https://forum.inductiveautomation.com/u/alewayhar)\
**Post date:** [July 24, 2015, 3:57pm UTC](https://forum.inductiveautomation.com/t/delete-row-script-command/10271/3 "2015-07-24T15:57:13Z")

</div>

PERFECT!!! Thank you so much!! 😲😲😲
