# Deleting an item from a repeating group

**URL:** <https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040>\
**Category:** Questions\
**Created:** [October 29, 2024, 2:27am UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040 "2024-10-29T02:27:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![romanhapek](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanhapek/32/233391_2.png) [@romanhapek](https://forum.bubble.io/u/romanhapek)\
**Post date:** [October 29, 2024, 2:27am UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040/1 "2024-10-29T02:27:54Z")

</div>

Hello,  
I’m trying to do something ‘simple’, but I can’t make my logic match Bubble’s logic. Hoping for any advice that can help me solve this.  
I have a data type ‘organization.’ Each organization has a field type ‘website’, which is a list. (Think of a blogger business where there are multiple websites.)  
I want the organization’s admin to be able to edit/delete websites.  
To display websites, I use this expression:

 ![Screenshot 2024-10-29 at 2.56.46 AM](https://us1.discourse-cdn.com/bubble/original/3X/2/1/21b4f4a1ad56e0e122e7748e6d941c230852b38c.png)

That is convoluted, imho, but that’s the only way I seem to be able to populate this repeating group. At least I see the list of websites.

 ![Screenshot 2024-10-29 at 2.59.04 AM](https://us1.discourse-cdn.com/bubble/original/3X/8/8/88751ca5a9c4cb4f3c371e31a543b5e78d83c593.png)

I want to add an option to delete a website. I watched videos from other users on YouTube, and I don’t see similar options to delete a thing in my app. When I try add a workflow to the ‘trash can’ icon using the same expression as listing websites, I get this message:

 ![Screenshot 2024-10-29 at 2.14.12 AM](https://us1.discourse-cdn.com/bubble/original/3X/4/3/43d31bc552ca2b4c7618ee71b799171c428dad56.png)

“Delete text…: To delete should be anything saveable but right now it’s a text.”

Each website IS a ‘text’ in the database, so… 😵‍💫

I tried ‘delete a thing’, ‘delete a list of things,’ and ‘make changes to a list’. Each time, the expression is red and asks for (More…) to be added.

What am I missing here?

Getting really frustrated with this learning/building process. Any help is appreciated.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![autom8](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@autom8](https://forum.bubble.io/u/autom8)\
**Post date:** [October 29, 2024, 2:44am UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040/2 "2024-10-29T02:44:37Z")

</div>

1. Create a datatype called ‘Website’
2. Create a field under Website called ‘Organization’ and set it to type Organization. Everytime a new Website is created, set the Organization to the relevant Organization.
3. On the repeating group data source, do a search for Website where Organization is the relevant Organization (you can grab the Organization from the URL or parent group or anywhere).
4. Now when you click the trash icon, select delete a thing and thing to delete is current cell’s website.

---

<div class="post-metadata">

**Author:** ![cyril.legaspi](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@cyril.legaspi](https://forum.bubble.io/u/cyril.legaspi)\
**Post date:** [October 29, 2024, 9:58am UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040/3 "2024-10-29T09:58:18Z")

</div>

You can try this!

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/7/e7af2c5d9c96b7facb488e4c87931ba4e38bf507.png)

---

<div class="post-metadata">

**Author:** ![romanhapek](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanhapek/32/233391_2.png) [@romanhapek](https://forum.bubble.io/u/romanhapek)\
**Post date:** [October 29, 2024, 12:25pm UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040/4 "2024-10-29T12:25:35Z")

</div>

Thanks @autom8 for the quick reply.  
I tried this, but it turns out that I would need remove the ‘Website’ field from under ‘Organization’ data type, and recreate under 'Website field type. Otherwise, it doesn’t display correctly in other places. That will mean I need to rebuild a few components as well.  
Does this suggest that, in order to manipulate list data in Bubble, it needs to be its own data type, and not field that is a list?

---

<div class="post-metadata">

**Author:** ![romanhapek](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanhapek/32/233391_2.png) [@romanhapek](https://forum.bubble.io/u/romanhapek)\
**Post date:** [October 29, 2024, 12:45pm UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040/5 "2024-10-29T12:45:17Z")

</div>

Thank you, @cyril.legaspi!  
This worked like a charm… I just had to remove a group container inside the repeating group to make the final ‘remove parent text’ click.  
Awesome. I didn’t realize that there was a group that broke the parent/child relationship there. Great lesson. thanks again 🙏

---

<div class="post-metadata">

**Author:** ![autom8](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@autom8](https://forum.bubble.io/u/autom8)\
**Post date:** [October 30, 2024, 1:56am UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040/6 "2024-10-30T01:56:24Z")

</div>

> [@romanhapek](#):
>
> Does this suggest that, in order to manipulate list data in Bubble, it needs to be its own data type, and not field that is a list?

Its the more efficient way of doing it, specially with the new WU pricing, you want to avoid list fields on datatypes.

---

<div class="post-metadata">

**Author:** ![romanhapek](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanhapek/32/233391_2.png) [@romanhapek](https://forum.bubble.io/u/romanhapek)\
**Post date:** [October 30, 2024, 4:56pm UTC](https://forum.bubble.io/t/deleting-an-item-from-a-repeating-group/346040/7 "2024-10-30T16:56:41Z")

</div>

This is great info. Efficiency is important. I will consider rebuilding some sections in this app.  
I will try to avoid using lists in the future.  
Thank you very much.
