Delete attachment action

This action lets you delete an attachment via the WordPress integration. Use it to automate you daily work and 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 the cache was cleared via The WP Fastest Cache Logo for our WP Webhooks integration WP Fastest Cache, 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 payment was completed via The Gravityforms Logo for our integration Gravity Forms, delete an attachment via The WordPress Logo for our integration WordPress.
When a booking status was updated via The Amelia Logo for our WP Webhooks integration Amelia, delete an attachment via The WordPress Logo for our integration WordPress.
When a user was logged out via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When an import was processed via The WP All Import Logo for our WP Webhooks integration WP All Import, delete an attachment via The WordPress Logo for our integration WordPress.
When a membership was paused 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 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 completed 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.
When an action was fired via The WP Webhooks Logo for our WP Webhooks integration WP Webhooks, delete an attachment via The WordPress Logo for our integration WordPress.
When a donation was cancelled via The GiveWP Logo for our WP Webhooks integration GiveWP, delete an attachment via The WordPress Logo for our integration WordPress.
When a Stripe payment was completed via The Formidable Logo for our WP Webhooks integration Formidable Forms, delete an attachment via The WordPress Logo for our integration WordPress.
When a comment was trashed 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 list via The FluentCRM Logo for our WP Webhooks integration FluentCRM, delete an attachment 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 an attachment via The WordPress Logo for our integration WordPress.
When a purchase was completed via The WP Simple Pay Logo for our WP Webhooks integration WP Simple Pay, delete an attachment via The WordPress Logo for our integration WordPress.
When the page cache was cleared via The Hummingbird Logo for our WP Webhooks integration Hummingbird, delete an attachment via The WordPress Logo for our integration WordPress.
When a tag was added 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 contact was deleted via The FluentCRM Logo for our WP Webhooks integration FluentCRM, delete an attachment 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 an attachment via The WordPress Logo for our integration WordPress.
When a lesson was completed via The Tutor LMS Logo for our WP Webhooks integration Tutor LMS, 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.