# How To Save Relation Column Data After Deleting /ClearingCart Data

**URL:** <https://community.glideapps.com/t/how-to-save-relation-column-data-after-deleting-clearingcart-data/56894>\
**Category:** Ask for Help\
**Created:** [January 19, 2023, 9:39pm UTC](https://community.glideapps.com/t/how-to-save-relation-column-data-after-deleting-clearingcart-data/56894 "2023-01-19T21:39:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [January 19, 2023, 9:39pm UTC](https://community.glideapps.com/t/how-to-save-relation-column-data-after-deleting-clearingcart-data/56894/1 "2023-01-19T21:39:18Z")

</div>

So I’m almost done with my app but I have an issue I’m trying to solve. This issue is saving a relation data after the data it’s connected to is deleted.

Here what I’m trying to do. After a user adds a product or products to the bag/cart, then after heading to checkout they would choose they would them confirm payment. After the submit button is hit, I had it set where the bag column’s items/reference would be deleted to clear the cart. This cause an issue.

For my order status table this would remove the relation to the product and other additional info or the seller. How would I go about keeping the data in the bag column from the user will also deleting it?

---

<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:** [January 20, 2023, 1:36am UTC](https://community.glideapps.com/t/how-to-save-relation-column-data-after-deleting-clearingcart-data/56894/2 "2023-01-20T01:36:22Z")

</div>

I’m not sure I get the full picture of your data structure here. So here are some questions:

- What fields do you want to keep after the user has purchased?
- Do the rows need to be deleted to make your flow work or is there an alternative?

---

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [January 20, 2023, 2:35am UTC](https://community.glideapps.com/t/how-to-save-relation-column-data-after-deleting-clearingcart-data/56894/3 "2023-01-20T02:35:34Z")

</div>

The field I wish to delete is the user’s bag/cart. The reason for this is so the cart is cleared.
