# Cancelling registration for an Event

**URL:** <https://community.glideapps.com/t/cancelling-registration-for-an-event/18867>\
**Category:** Ask for Help\
**Created:** [November 24, 2020, 2:39pm UTC](https://community.glideapps.com/t/cancelling-registration-for-an-event/18867 "2020-11-24T14:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [November 24, 2020, 2:39pm UTC](https://community.glideapps.com/t/cancelling-registration-for-an-event/18867/1 "2020-11-24T14:39:07Z")

</div>

Hi,  
I have a use case where user can view the events and click “register” button to register for the event. This registration is a simple add row of all the event’s details and user email address.  
I want to show a button to allow cancellation of attendance when it is pressed.  
How can I remove this added row when cancel is pressed? Or what would be the best practice to achieve this?

Thank you.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 24, 2020, 3:41pm UTC](https://community.glideapps.com/t/cancelling-registration-for-an-event/18867/2 "2020-11-24T15:41:10Z")

</div>

I’m not sure if this would be considered best practice, but here is what I normally do in cases like this:

1. Add a number column named something like “Delete Flag”
2. Then add a button with an action to increment that column
3. Then use visibility conditions to hide any rows where the delete flag is not empty

If you actually want to remove the row completely (which I often do), I usually do this in the backend with a trigger script.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 24, 2020, 3:59pm UTC](https://community.glideapps.com/t/cancelling-registration-for-an-event/18867/3 "2020-11-24T15:59:59Z")

</div>

The cleanest solution would be what Darren said, your button would trigger a script, let’s say it increments a “Delete” column in the sheet, then the row will actually be deleted.

Otherwise you can use relation \> set columns to empty I guess.
