# WIX Groups: Delete/Query Posts with Code

**URL:** <https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914>\
**Category:** Ask the community\
**Tags:** wix-groups-v2, wix-groups-backend, question, code\
**Created:** [March 4, 2024, 7:07am UTC](https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914 "2024-03-04T07:07:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_a](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tom_a/32/90138_2.png) [@tom\_a](https://forum.wixstudio.com/u/tom_a)\
**Post date:** [March 4, 2024, 7:07am UTC](https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914/1 "2024-03-04T07:07:53Z")

</div>

**moving to feedback group** @codequeen

/\* original request below \*/

Hi All

I want to be able to delete WIX Groups **Posts** with Code. I can delete **Groups** with the API, but _not_ the **posts**.

[WIX Automation](https://www.wix.com/velo/reference/spis/wix-automations) allows me to set up a trigger for “When Member Creates Post” for the [WIX Groups APP](https://www.wix.com/velo/reference/wix-groups-v2).

The Automation populates the post data. Included in this are the **‘postId’** and **‘groupId’**.

It would be great to be able to display this data on a member page. Then, if a member wants to, they can quickly view/delete any post from any group (or all posts, all at once), the API would just delete their post.

I can [Delete Groups](https://www.wix.com/velo/reference/wix-groups-v2/groups/deletegroup) with Code, but I can’t see the option for posts

**Will this soon be possible?** It would fix a huge problem I’m trying to curtail. Seems like it would be a relatively useful thing to be able to access using the API too.

Also, any chance of adding a post-search/query API too?

---

<div class="post-metadata">

**Author:** ![tom\_a](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tom_a/32/90138_2.png) [@tom\_a](https://forum.wixstudio.com/u/tom_a)\
**Post date:** [March 7, 2024, 8:02am UTC](https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914/2 "2024-03-07T08:02:12Z")

</div>

nudging post for attention

---

<div class="post-metadata">

**Author:** ![codequeen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/codequeen/32/88960_2.png) [@codequeen](https://forum.wixstudio.com/u/codequeen)\
**Post date:** [March 7, 2024, 9:07am UTC](https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914/3 "2024-03-07T09:07:30Z")

</div>

If it’s not listed as an API then it is not possible.

You could tag this post under the Feedback group to request a new feature.

---

<div class="post-metadata">

**Author:** ![tom\_a](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tom_a/32/90138_2.png) [@tom\_a](https://forum.wixstudio.com/u/tom_a)\
**Post date:** [March 11, 2024, 11:57am UTC](https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914/4 "2024-03-11T11:57:10Z")

</div>

Moved it across. Not sure if there is a groups-specific person we can tag in this to see if we can get the ball rolling?

---

<div class="post-metadata">

**Author:** ![codequeen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/codequeen/32/88960_2.png) [@codequeen](https://forum.wixstudio.com/u/codequeen)\
**Post date:** [March 11, 2024, 11:58am UTC](https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914/5 "2024-03-11T11:58:39Z")

</div>

#featureRequest

@anthony

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [March 11, 2024, 3:01pm UTC](https://forum.wixstudio.com/t/wix-groups-delete-query-posts-with-code/56914/6 "2024-03-11T15:01:09Z")

</div>

Feature requests are handled through the project roadmap so please submit it here. Once you do others can vote on the feature request as well: [Product Roadmap](https://support.wix.com/en/roadmap)

I’ll also raise internally but the roadmap is the best place to get features added.
