# Delete does not exist for collection

**URL:** <https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887>\
**Category:** Get Help\
**Created:** [March 3, 2023, 10:55pm UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887 "2023-03-03T22:55:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwuzhang](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bwuzhang](https://forum.adalo.com/u/bwuzhang)\
**Post date:** [March 3, 2023, 10:55pm UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887/1 "2023-03-03T22:55:51Z")

</div>

Hello, I’m developing an app where a user can post an image and another user can like it. I have collections of users, posts, and likes.

For each post that a user is viewing, the user can like it, which creates a new record in the Like collection. A user should also be able to unlike it, which is supposed to delete the like it previously created in the Like collection. However, the Like collection does not appear in a button’s delete action list. Like and Post is linked in a one-to-many relationship: one post can have multiple likes from different users.

How can I be able to delete the link a user created?

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 3, 2023, 11:31pm UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887/2 "2023-03-03T23:31:17Z")

</div>

Hi @bwuzhang ,

If you create many-to-many relationship between posts and likes, there should be an update action with remove like available.

---

<div class="post-metadata">

**Author:** ![bwuzhang](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bwuzhang](https://forum.adalo.com/u/bwuzhang)\
**Post date:** [March 4, 2023, 12:44pm UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887/3 "2023-03-04T12:44:17Z")

</div>

Hi @Yongki , creating likes with many-to-many relationship does not work for me. In this case, when creating a new like, the post field does not even exist, resulting in empty fields in the Collection. The delete option is not available either.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/0/b/0b723dfc2cbf4d06340c0990f79b0b202b77e0b8.jpeg)

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 4, 2023, 10:03pm UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887/4 "2023-03-04T22:03:10Z")

</div>

Try update action with add to.

---

<div class="post-metadata">

**Author:** ![bwuzhang](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bwuzhang](https://forum.adalo.com/u/bwuzhang)\
**Post date:** [March 6, 2023, 3:44pm UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887/5 "2023-03-06T15:44:01Z")

</div>

@Yongki Can you elaborate on how to update action with add to? Didn’t have luck poking around.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [March 9, 2023, 10:47am UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887/6 "2023-03-09T10:47:31Z")

</div>

Hi @bwuzhang,

There are 2 possible approaches to creating “Likes”.  
The first one is having many-to-many relationships between Images and Users, so that one Image can be liked by many Users and a User can like many Images.  
This is explained here: [How to create a "Favorite" button - Adalo Resources](https://help.adalo.com/how-to/how-to-create-a-favorite-button)

Another approach is having a separate collection to store “Likes” (you can include other data there as well). I’ve made quite a few videos about this in the past - not directly related to your exact case, but approach will be similar:

- [Adalo Mini-app series: Followers, Influencers and follow requests - using separate collection - YouTube](https://youtu.be/_HS9WkDJbRk)
- [Adalo Help: Upvotes and Downvotes - YouTube](https://youtu.be/_jPUMDLVwoA)
- [Adalo Help: Upvotes & Downvotes for Posts, pt1 - application preparation, adding Posts functionality - YouTube](https://youtu.be/b0Lw8jgLaLk)
- [Adalo Help: Upvotes & Downvotes for Posts - continued! Part 2: main functionality - YouTube](https://youtu.be/wXWgBV78yUQ)

Hope this helps.

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [March 19, 2023, 10:48am UTC](https://forum.adalo.com/t/delete-does-not-exist-for-collection/36887/7 "2023-03-19T10:48:31Z")

</div>

Closed on March 19, 2023, 10:48am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
