# A way to delete item from Firebase

**URL:** <https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614>\
**Category:** Questions about Thunkable X\
**Created:** [October 12, 2018, 4:10pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614 "2018-10-12T16:10:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 12, 2018, 4:10pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/1 "2018-10-12T16:10:07Z")

</div>

Hey ! Is there a way to completely delete an item from the database from the app ? Just with it’s name ? Thanks !

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [October 12, 2018, 4:18pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/2 "2018-10-12T16:18:20Z")

</div>

Just set its value to an empty string in a text block; this will delete it.

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 12, 2018, 4:22pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/3 "2018-10-12T16:22:34Z")

</div>

I need it to be removed from the database, not just to set it’s value to “”, will it work ?

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [October 12, 2018, 4:23pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/4 "2018-10-12T16:23:27Z")

</div>

Yes—I just tested it. When you set the value to an empty string, the entry is deleted from Firebase entirely. Cheers!

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 12, 2018, 4:24pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/5 "2018-10-12T16:24:21Z")

</div>

Thank you ! Nice day 🙂

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 12, 2018, 4:43pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/6 "2018-10-12T16:43:11Z")

</div>

Hey @Kyle_Williams, it still is in the Database for me 😕 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/532d128f0e0fc8eed331ac90f2a507fd1f24afaf.png)

Please note that I want to delete the key here not the value.

Thanks !

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [October 12, 2018, 4:55pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/7 "2018-10-12T16:55:43Z")

</div>

Try using a ‘null’ block instead of a blank text block. The blank text block seems to only work for child nodes.

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 12, 2018, 5:33pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/8 "2018-10-12T17:33:27Z")

</div>

Does the same 😕 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/ce9f76b3b37369014aa7b12faa8117468b58e08c.png) The null block (green) doesn’t change anything and the null string does the above

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [October 12, 2018, 7:55pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/9 "2018-10-12T19:55:39Z")

</div>

That’s strange, that process is working fine for me. Here is an example app:  
[https://x.thunkable.com/copy/1b4304de298b68632af1f021a452508e](https://x.thunkable.com/copy/1b4304de298b68632af1f021a452508e)

You will need to put your own Firebase API and URL in for it to work. Let me know what this application does.

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 12, 2018, 9:43pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/10 "2018-10-12T21:43:08Z")

</div>

I understand your process, it deletes the `value` but not the `key` but what I need to delete is the key 😕 Anyway I’ll work it up, thanks !

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [October 12, 2018, 9:51pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/11 "2018-10-12T21:51:29Z")

</div>

That’s very odd—I swear that it deletes the entire key when I run it, not just the value.

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 12, 2018, 9:56pm UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/12 "2018-10-12T21:56:18Z")

</div>

What the hell it’s working now you’re right…Thanks a lot but this live app is a bit buggy sometimes. Sorry for the confusion and thanks again !

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:55am UTC](https://community.thunkable.com/t/a-way-to-delete-item-from-firebase/51614/13 "2024-11-08T11:55:09Z")

</div>


