Delete attachment action

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

How to delete an attachment

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

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

The id of the attachment you want to delete.

force_delete

Whether to bypass trash and force deletion. Default: noPlease read the description for more information.

do_action

Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.

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 attachment" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When an affiliate status was changed via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, delete an attachment via The WordPress Logo for our integration WordPress.
When a product was updated via The Woocommerce Logo for our integration WooCommerce, delete an attachment via The WordPress Logo for our integration WordPress.
When a comment was deleted via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When a user password was recovered via The WP User Manager Logo for our WP Webhooks integration WP User Manager, delete an attachment via The WordPress Logo for our integration WordPress.
When a payments status was changed via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, delete an attachment via The WordPress Logo for our integration WordPress.
When a tag was removed via The WP Fusion Logo for our WP Webhooks integration WP Fusion, delete an attachment 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 an attachment via The WordPress Logo for our integration WordPress.
When a user password was changed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, delete an attachment via The WordPress Logo for our integration WordPress.
When a user completed a unit via The WP Courseware Logo for our WP Webhooks integration WP Courseware, delete an attachment via The WordPress Logo for our integration WordPress.
When a donation is pending via The GiveWP Logo for our WP Webhooks integration GiveWP, delete an attachment via The WordPress Logo for our integration WordPress.
When a product was viewed via The Woocommerce Logo for our integration WooCommerce, delete an attachment via The WordPress Logo for our integration WordPress.
When a shortcode was called via The WordPress Logo for our integration WordPress, delete an attachment 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 an attachment 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 an attachment via The WordPress Logo for our integration WordPress.
When a membership was set to pending cancellation via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, delete an attachment 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 an attachment via The WordPress Logo for our integration WordPress.
When a user has logged in via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When a WordPress hook was fired via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When a contact was added to a tag via The FluentCRM Logo for our WP Webhooks integration FluentCRM, delete an attachment via The WordPress Logo for our integration WordPress.
When a user was created via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When a user enrolled into a course via The WP Courseware Logo for our WP Webhooks integration WP Courseware, delete an attachment 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.