Delete file action

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

How to delete a file

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

"Delete file" 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 file 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.
file *

The path as well as the file name and extension. For example: wp-content/themes/demo-theme/index.php

do_action

Advanced: Register a custom action after Webhooks Pro 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 file" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When a response was added to a ticket via The Fluent Support Logo for our WP Webhooks integration Fluent Support, delete a file via The WordPress Logo for our integration WordPress.
When an ACF comment field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, delete a file via The WordPress Logo for our integration WordPress.
When an account was marked inactive via The Ultimate Member Logo for our WP Webhooks integration Ultimate Member, delete a file via The WordPress Logo for our integration WordPress.
When a product review has been approved via The Woocommerce Logo for our integration WooCommerce, delete a file via The WordPress Logo for our integration WordPress.
When a form was submitted via The JetEngine Logo for our WP Webhooks integration JetEngine, delete a file via The WordPress Logo for our integration WordPress.
When a mockup comment was created via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, delete a file 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 file via The WordPress Logo for our integration WordPress.
When an entry was rejected via The GravityKit Logo for our WP Webhooks integration GravityKit, delete a file 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 file via The WordPress Logo for our integration WordPress.
When a new subscription payment was created via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, delete a file via The WordPress Logo for our integration WordPress.
When an order was created via The Woocommerce Logo for our integration WooCommerce, delete a file via The WordPress Logo for our integration WordPress.
When a coupon was updated via The Woocommerce Logo for our integration WooCommerce, delete a file via The WordPress Logo for our integration WordPress.
When an ACF term field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, delete a file via The WordPress Logo for our integration WordPress.
When a donation was preapproved via The GiveWP Logo for our WP Webhooks integration GiveWP, delete a file via The WordPress Logo for our integration WordPress.
When an order was restored via The Woocommerce Logo for our integration WooCommerce, delete a file via The WordPress Logo for our integration WordPress.
When a taxonomy term was updated via The WordPress Logo for our integration WordPress, delete a file via The WordPress Logo for our integration WordPress.
When a cover photo was updated via The WP User Manager Logo for our WP Webhooks integration WP User Manager, delete a file via The WordPress Logo for our integration WordPress.
When a license status was updated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, delete a file via The WordPress Logo for our integration WordPress.
When a paid membership expired via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, delete a file via The WordPress Logo for our integration WordPress.
When a tag was removed from a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, delete a file via The WordPress Logo for our integration WordPress.
When a file was downloaded via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, delete a file 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.