# \#delete\_entry

**URL:** https://community.gravityforms.com/tag/delete-entry/675.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [When deleting an entry with GFAPI::delete\_entry, how to specify the form id?](https://community.gravityforms.com/t/when-deleting-an-entry-with-gfapi-delete-entry-how-to-specify-the-form-id/16522)

<div class="topic-metadata">

**Author:** [@user5b4f1b8702a506.9](https://community.gravityforms.com/u/user5b4f1b8702a506.9)\
**Replies:** 1\
**Last updated:** [December 24, 2023, 5:51am UTC](https://community.gravityforms.com/t/when-deleting-an-entry-with-gfapi-delete-entry-how-to-specify-the-form-id/16522 "2023-12-24T05:51:57Z")

</div>

When deleting an entry with GFAPI::delete\_entry, how to specify the form id? $result = GFAPI::delete\_entry( $entry\_id );

---

## [Delete entries after add-ons execution](https://community.gravityforms.com/t/delete-entries-after-add-ons-execution/14542)

<div class="topic-metadata">

**Author:** [@InCopla](https://community.gravityforms.com/u/InCopla)\
**Replies:** 3\
**Last updated:** [March 3, 2023, 1:02pm UTC](https://community.gravityforms.com/t/delete-entries-after-add-ons-execution/14542 "2023-03-03T13:02:17Z")

</div>

Hi I’d like to know if there’s an action that permit to delete entries (or do something) after add-ons execution. I have added an action which delete entries “after\_submission”, but it create issues with add-ons (execu…

---

## [How to bulk delete entries older than x days using MySQL?](https://community.gravityforms.com/t/how-to-bulk-delete-entries-older-than-x-days-using-mysql/14008)

<div class="topic-metadata">

**Author:** [@michaeledi](https://community.gravityforms.com/u/michaeledi)\
**Replies:** 0\
**Last updated:** [December 5, 2022, 7:20am UTC](https://community.gravityforms.com/t/how-to-bulk-delete-entries-older-than-x-days-using-mysql/14008 "2022-12-05T07:20:10Z")

</div>

I’ve got over 30k entries with massive and long field values that I want to cleanup. Previously I tried the WP-CLI to filter and delete old entries, but stuck at the export step since is still took me decades… It’s been…

---

## [Trigger Zappier hook when entry is deleted \[RESOLVED\]](https://community.gravityforms.com/t/trigger-zappier-hook-when-entry-is-deleted-resolved/12280)

<div class="topic-metadata">

**Author:** [@MichaelM](https://community.gravityforms.com/u/MichaelM)\
**Replies:** 5\
**Last updated:** [March 30, 2022, 2:18am UTC](https://community.gravityforms.com/t/trigger-zappier-hook-when-entry-is-deleted-resolved/12280 "2022-03-30T02:18:08Z")

</div>

Hi, I have a form we have all of our clients fill to open a file at our Clinic. This form is then processed with a Workflow (gravity flow). In the process of opening the file, we have a Child form (gravity perks nested …

---

## [Do\_action when feed is deleted](https://community.gravityforms.com/t/do-action-when-feed-is-deleted/5995)

<div class="topic-metadata">

**Author:** [@uamv](https://community.gravityforms.com/u/uamv)\
**Replies:** 0\
**Last updated:** [September 3, 2020, 5:52pm UTC](https://community.gravityforms.com/t/do-action-when-feed-is-deleted/5995 "2020-09-03T17:52:22Z")

</div>

When building out a couple plugins at Gravity Hopper, I’ve found myself in need of hooking into an action that’d fire when a form feed is deleted. I think this should be doable by adding the following to the function del…

---

## [Remove Entry Based on Value \[RESOLVED\]](https://community.gravityforms.com/t/remove-entry-based-on-value-resolved/3892)

<div class="topic-metadata">

**Author:** [@gogrw](https://community.gravityforms.com/u/gogrw)\
**Replies:** 2\
**Last updated:** [February 13, 2020, 8:57pm UTC](https://community.gravityforms.com/t/remove-entry-based-on-value-resolved/3892 "2020-02-13T20:57:45Z")

</div>

I’m a little new to php, so bare with me. I’m trying to automatically remove entries based on a field’s value. I can swarmed with entries every day, but only want to keep the ones that meet certain criteria. I know that …
