# Deleting a record that has dependencies

**URL:** <https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306>\
**Category:** Report a Bug\
**Created:** [June 23, 2020, 8:53am UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306 "2020-06-23T08:53:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)\
**Post date:** [June 23, 2020, 8:53am UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306/1 "2020-06-23T08:53:27Z")

</div>

Step 1: Department X is added (stored under tab=departments)  
Step 2: Employee A is added (stored under tab=Employees)  
Part of doing step 2, I have a choice field pointing to Department Values - so I selected X as the Department of Employee A.  
Step 3: Validation (Department showing the Employee - because I have a relation setup)  
so far so good.  
Step 4: I deleted the Department (from the form not deleting raw from google sheet)

Issue \>\>\> Department was deleted and no longer showing under Dept page (or Dep Google worksheet), BUT Department value still showing in Employee page !!

1. Shouldn’t Glide pops a message saying “Can’t delete coz there are dependencies”
2. If not, shouldn’t Dept value under Employee record be deleted at least !!

---

<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:** [June 23, 2020, 8:57am UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306/2 "2020-06-23T08:57:47Z")

</div>

When you finish choosing the department for the employee, you write it back to the Sheets as a hard-coded data right?

---

<div class="post-metadata">

**Author:** ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)\
**Post date:** [June 23, 2020, 9:03am UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306/3 "2020-06-23T09:03:07Z")

</div>

No - I select department to the employee when I am creating a new employee and click submit. I see the employee record added as line in the google sheet fine including the chosen Dept.  
I don’t come near the google sheet

---

<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:** [June 23, 2020, 9:06am UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306/4 "2020-06-23T09:06:00Z")

</div>

I mean when you have the “Department” information written into the Google Sheets then it will stay there and does not depend on you deleting the “Department” row. The connection between the 2, as I’m understanding, was fixed in that Department column value in your Employees sheet when you have finished adding an employee. Is that correct?

---

<div class="post-metadata">

**Author:** ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)\
**Post date:** [June 23, 2020, 9:22am UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306/5 "2020-06-23T09:22:52Z")

</div>

Here’s the SoE graphically:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/4/4f5a0ef4e233e5471d7d328c622f7099a9f6bcad.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 23, 2020, 11:48am UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306/6 "2020-06-23T11:48:30Z")

</div>

I understand what your are saying, and while this would be a great feature, it’s not how glide currently does or ever has worked. I would call this a feature request instead of a bug.

---

<div class="post-metadata">

**Author:** ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)\
**Post date:** [June 23, 2020, 12:03pm UTC](https://community.glideapps.com/t/deleting-a-record-that-has-dependencies/11306/7 "2020-06-23T12:03:36Z")

</div>

Thanks Jeff. Let’s call it “Limitation” then 🙂 - will submit a new feature request. Thanks, Adel
