# Deleting items in a repeating group using a popup

**URL:** <https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496>\
**Category:** Questions\
**Created:** [May 22, 2025, 3:17pm UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496 "2025-05-22T15:17:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wahitolydia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/wahitolydia/32/248461_2.png) [@wahitolydia](https://forum.bubble.io/u/wahitolydia)\
**Post date:** [May 22, 2025, 3:17pm UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/1 "2025-05-22T15:17:32Z")

</div>

Hello, I’m abit stuck & need some help.  
I have a repeating group showcasing images.

 ![Repeating group](https://us1.discourse-cdn.com/bubble/original/3X/b/b/bb8d67f9718f5f8924e5a863b93469b61c33f438.png)

I would like to be able to delet the images from a popup. This is what I currently have:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/4/4468e7c6903663164b0ccac04eac492a89d74c57.png)

This is the workflow attached to it:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/f/5fc283ad506c88055fea2cc2c45336da825f3e26.png)

I’m not sure I’m displaying the right data to begin with, my idea was to pass the data from the image wrapper, contained in the group image item within the repeating group.

This is the workflow attached to the delete button in the popup:

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

Anyone know how I can uniquely delete, the specific image selected in the repeating group? Thank you.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 22, 2025, 3:37pm UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/2 "2025-05-22T15:37:13Z")

</div>

Are you trying to delete an image stored in your File Storage or an item from your database (or both)?

---

<div class="post-metadata">

**Author:** ![andrianirinaovan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrianirinaovan/32/252378_2.png) [@andrianirinaovan](https://forum.bubble.io/u/andrianirinaovan)\
**Post date:** [May 22, 2025, 5:19pm UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/3 "2025-05-22T17:19:19Z")

</div>

Hello,

You can create a custom state that retrieves the element in question from your repeating group, then when you click Delete, a workflow to delete a thing (the element in the custom state) is triggered.

---

<div class="post-metadata">

**Author:** ![wahitolydia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/wahitolydia/32/248461_2.png) [@wahitolydia](https://forum.bubble.io/u/wahitolydia)\
**Post date:** [May 23, 2025, 5:37am UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/4 "2025-05-23T05:37:51Z")

</div>

I would like to delete from both the file storage & from the database.

---

<div class="post-metadata">

**Author:** ![wahitolydia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/wahitolydia/32/248461_2.png) [@wahitolydia](https://forum.bubble.io/u/wahitolydia)\
**Post date:** [May 23, 2025, 5:45am UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/5 "2025-05-23T05:45:38Z")

</div>

Thank you, I’m still trying to figure out custom states. I will figure it out -hopefully. I will be back with feedback. 🙂

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 23, 2025, 7:02am UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/6 "2025-05-23T07:02:15Z")

</div>

Then you need to delete the file first (referred to from the database item), using 'Delete an uploaded file" THEN delete the thing using ‘Delete a Thing’.

---

<div class="post-metadata">

**Author:** ![wahitolydia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/wahitolydia/32/248461_2.png) [@wahitolydia](https://forum.bubble.io/u/wahitolydia)\
**Post date:** [May 23, 2025, 8:31am UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/7 "2025-05-23T08:31:47Z")

</div>

Thanks Adam. I was able to get to the level where I was deleting the first item/last item but not the particular item selected. How can I make sure its the unique image selected?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 23, 2025, 9:16am UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/8 "2025-05-23T09:16:17Z")

</div>

When you select the item (by clicking on it in the RG) ‘send’ that Data to the popup (or anywhere you like - or set a custom state), and then just refer to that item in the delete a thing action.

e.g.

**click on RG item:**  
send Data (current cell’s thing) to Popup  
open popup

**click ‘Delete’**  
Delete an uploaded file (popup’s thing’s file)  
Delete a thing (popup’s thing)

---

<div class="post-metadata">

**Author:** ![wahitolydia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/wahitolydia/32/248461_2.png) [@wahitolydia](https://forum.bubble.io/u/wahitolydia)\
**Post date:** [May 23, 2025, 3:12pm UTC](https://forum.bubble.io/t/deleting-items-in-a-repeating-group-using-a-popup/370496/9 "2025-05-23T15:12:41Z")

</div>

I will update it based on the suggestions given, thank you. I’ll be back with feedback.
