# Data delete from repeating group but other user's data not deleted

**URL:** <https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368>\
**Category:** Need help\
**Created:** [March 22, 2018, 5:32pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368 "2018-03-22T17:32:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 22, 2018, 5:32pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/1 "2018-03-22T17:32:45Z")

</div>

hi @dbevan,

Thank you for your help so far. I wanted to ask you another question related to the messaging part. But since my previous problems was solved by your help I thought I’d create this new topic.  
I created this option where a user can delete messages from the repeating group. But according to my layout when user A deletes a certain message, the data is erased from user B’s data too.

So what I tried to do is, create two message bodies and associate each with each user, but I couldn’t figure a way around this.  
If you could please help. Thank you!

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 22, 2018, 5:39pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/2 "2018-03-22T17:39:49Z")

</div>

In the Conversation Table, create a field called “See Conversation”. It will be set up the exact same as Participants.

Do the same for the Messages table. Call it “See Message”.

When User A deletes a message, they remove themselves from the “See Message” list. If User B also deletes the same message, then the workflow should delete this message.

When User A deletes a conversation, two things should happen.

1. User A is removed from the “See Conversation” list.
2. Remove User A from all of the Messages’s “See Message” list for that particular Conversation

Again, if User B also removes themselves from the Conversation, the Conversation and all of its messages should be deleted.

When changing or deleting a lot of things at once, you can use a regular workflow, but scheduling an API workflow is the better move.

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 22, 2018, 6:16pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/3 "2018-03-22T18:16:15Z")

</div>

Hi @dbevan,  
So far I created “see conversations” in conversation data, and “see messages” in message data. And I created this workflow that when a new message is sent, see conversation = parent group user, see conversation = current user. I did the same for see messages whenever a new message is sent.  
When i delete messages in a conversation bewteen A and B, I use the check box and for the checkbox i created a custom state to hold the values of the selected things in a pop up.  
so the value =popup Message’s Selected things:plus item current cells message.  
so should i remove the user over here or some place else?

and i never used the API workflow

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 22, 2018, 6:47pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/4 "2018-03-22T18:47:09Z")

</div>

I tried creating a custom state for the checkbox. custom state (name = selected user &type = user and value=current cell’s message’s see message)  
when i try to create a workflow with a trash button = delete a list of things. type = user, list to delete = pop up’s messages selected user … i dont know what to select after that.

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 22, 2018, 9:22pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/5 "2018-03-22T21:22:38Z")

</div>

I have no idea what you’re doing with the custom state so I can’t really help you out with that.

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 22, 2018, 11:15pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/6 "2018-03-22T23:15:01Z")

</div>

I guess I’m doing it all wrong. Could you please help me execute the suggestion you made with the see message data type.

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 22, 2018, 11:35pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/7 "2018-03-22T23:35:33Z")

</div>

Just follow the workflows logic I mentioned. There’s no need for a custom state. If you have a delete icon in a repeating group cell of messages you should be able to click it and remove the current user from that message’s “see message” list.

Let me know where you’re getting confused.

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 1:08am UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/8 "2018-03-23T01:08:30Z")

</div>

As suggested by you I created see message and see conversation in messages and conversation datas.

As you said that see message and see conversation are list of users. But how come the message body is associated with them. Does adding see message and see conversation satisfy the condition that the message body is being seen by them automatically?

I tried to assign values to them. I created this condition that when ever send message is clicked, see message ADD parents groups user creator and see message ADD parents groups recipient.

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 1:10am UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/9 "2018-03-23T01:10:41Z")

</div>

and when I want to delete the current row in repeating group, as advised by you I tried to make changes to a list of thing --\> messages --\> see message remove current user.  
but that still deletes the message body for both users A and B

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 23, 2018, 1:27am UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/10 "2018-03-23T01:27:47Z")

</div>

They aren’t associated with the message body. I need to see a screenshot of your repeating group to better understand the problem.

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 1:55am UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/11 "2018-03-23T01:55:41Z")

</div>

![19%20PM](https://us1.discourse-cdn.com/bubble/original/3X/b/9/b9a1ca9d721dd1c3b2c5e0927c92d0eddb80080c.png) ![25%20PM](https://us1.discourse-cdn.com/bubble/original/3X/4/c/4ccf0f162bbe9ef614acc849c6ac69e449943e42.png)

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 23, 2018, 2:09am UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/12 "2018-03-23T02:09:53Z")

</div>

I said to make changes to the messages, not delete them haha. Sorry if I wasn’t clear. You remove the current user from the see message field. Now AFTER that action, you should delete any messages that have an empty “see messages” list.

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 2:13am UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/13 "2018-03-23T02:13:12Z")

</div>

I will try and do that and let you know. Thank you for your patience!

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 23, 2018, 2:13am UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/14 "2018-03-23T02:13:31Z")

</div>

No worries!

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 2:44pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/15 "2018-03-23T14:44:36Z")

</div>

I’m very close. But after user A delete’s a message line, then the current cell instead of being removed, stays there blank.  
 ![adasd](https://us1.discourse-cdn.com/bubble/original/3X/7/7/775c7443eac81616892ad113402fc1db2e2ff47d.png)

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 23, 2018, 3:17pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/16 "2018-03-23T15:17:18Z")

</div>

Screenshot the data source of the repeating group including the constraints. The current user should only see messages that they are “participants” in AND can “see”.

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 3:37pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/17 "2018-03-23T15:37:22Z")

</div>

![dataaa](https://us1.discourse-cdn.com/bubble/original/3X/3/6/3630ead5f64aeb93ad2b0219657c27b30a02a5a3.png)

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 3:43pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/18 "2018-03-23T15:43:43Z")

</div>

no condition for the above

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 3:54pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/19 "2018-03-23T15:54:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hg.hermes.l](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hg.hermes.l](https://forum.bubble.io/u/hg.hermes.l)\
**Post date:** [March 23, 2018, 5:41pm UTC](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368/20 "2018-03-23T17:41:21Z")

</div>

is there a way i could collapse the empty cell. ?

[Next page](https://forum.bubble.io/t/data-delete-from-repeating-group-but-other-users-data-not-deleted/26368.md?page=2)
