Delete post action

This action lets you delete a post via the WordPress integration. Use it to automate you daily work and save time and resources.

How to delete a post

This section aims to help you getting started on how to delete a post via WordPress. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Delete post" arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Delete post action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
post_id *

The post id of your specified post. This field is required.

force_delete

(optional) Whether to bypass trash and force deletion (added in WordPress 2.9). Possible values: "yes" and "no". Default: "no". Please note that soft deletion just works for the "post" and "page" post type.

do_action

Advanced: Register a custom action after the plugin fires this webhook.

wpwh_call_action

(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )

Connection examples

Get inspired on how to use the "Delete post" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When a customer was deleted via The Woocommerce Logo for our integration WooCommerce, delete a post via The WordPress Logo for our integration WordPress.
When a coupon was deleted via The Woocommerce Logo for our integration WooCommerce, delete a post via The WordPress Logo for our integration WordPress.
When a new referral was received via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, delete a post via The WordPress Logo for our integration WordPress.
When an order was updated via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, delete a post via The WordPress Logo for our integration WordPress.
When a topic reply was created via The bbPress Logo for our WP Webhooks integration bbPress, delete a post via The WordPress Logo for our integration WordPress.
When a booking was approved via The Events Manager Logo for our WP Webhooks integration Events Manager, delete a post via The WordPress Logo for our integration WordPress.
When the object cache was cleared via The LiteSpeed Cache Logo for our WP Webhooks integration LiteSpeed Cache, delete a post via The WordPress Logo for our integration WordPress.
When a form was submitted via The Fluent Forms Logo for our WP Webhooks integration Fluent Forms, delete a post via The WordPress Logo for our integration WordPress.
When a form was submitted via The Contact Form 7 Logo for our integration Contact Form 7, delete a post via The WordPress Logo for our integration WordPress.
When a profile cover photo was changed via The Ultimate Member Logo for our WP Webhooks integration Ultimate Member, delete a post via The WordPress Logo for our integration WordPress.
When a taxonomy term was updated via The WordPress Logo for our integration WordPress, delete a post via The WordPress Logo for our integration WordPress.
When the full cache was cleared via The Autoptimize Logo for our WP Webhooks integration Autoptimize, delete a post via The WordPress Logo for our integration WordPress.
When a contact was added to a list via The FluentCRM Logo for our WP Webhooks integration FluentCRM, delete a post via The WordPress Logo for our integration WordPress.
When a free membership expired via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, delete a post via The WordPress Logo for our integration WordPress.
When a contact was added to one or multiple lists via The Autonami Logo for our WP Webhooks integration Autonami, delete a post via The WordPress Logo for our integration WordPress.
When a tag was added to a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, delete a post via The WordPress Logo for our integration WordPress.
When a form was submitted via The WS Form Logo for our WP Webhooks integration WS Form, delete a post via The WordPress Logo for our integration WordPress.
When a Microsoft Power Automate webhook request was received via The Microsoft Power Automate Logo for our WP Webhooks integration Microsoft Power Automate, delete a post via The WordPress Logo for our integration WordPress.
When a booking was rejected via The Events Manager Logo for our WP Webhooks integration Events Manager, delete a post via The WordPress Logo for our integration WordPress.
When a WordPress hook was fired via The WordPress Logo for our integration WordPress, delete a post via The WordPress Logo for our integration WordPress.
When a donation failed via The GiveWP Logo for our WP Webhooks integration GiveWP, delete a post via The WordPress Logo for our integration WordPress.

More available WordPress endpoints

Discover more of the available endpoints used for the WordPress integration.
To learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.