# Perspective Alarm Status Table Selecting/Deselecting Alarms via Script

**URL:** <https://forum.inductiveautomation.com/t/perspective-alarm-status-table-selecting-deselecting-alarms-via-script/73408>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [May 8, 2023, 3:01pm UTC](https://forum.inductiveautomation.com/t/perspective-alarm-status-table-selecting-deselecting-alarms-via-script/73408 "2023-05-08T15:01:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![GregCavazos](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@GregCavazos](https://forum.inductiveautomation.com/u/GregCavazos)\
**Post date:** [November 21, 2023, 9:47pm UTC](https://forum.inductiveautomation.com/t/perspective-alarm-status-table-selecting-deselecting-alarms-via-script/73408/7 "2023-11-21T21:47:32Z")

</div>

How do you clear the selection?

I tried to use the one on the original post, but I cannot figure out how to make it work. As a test I tried a script and run as noted by the OP.

```auto
del self.props.get('selection').get('active').get('data')[-1]

```

I also tried manually seting the property to `[]` or 0, but If I am not mistaken thats readonly.

```auto
self.props.selection.active.data = []

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-alarm-status-table-selecting-deselecting-alarms-via-script/73408)._
