Action: Delete attachment

Delete an attachment from your website using webhooks.
On this page you will find further information about the Delete attachment action and how to use it via WP Webhooks, as well as via other external services such as Integromat, Pabbly, Integrately, or Zapier.
The Delete attachment action is part of our WordPress integration.

Webhook setup guide

This section aims to help you getting started with the Delete attachment action.
Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

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.

Connection examples

Get inspired on how to use the WordPress action. Down below you will find various examples with our other integrations.
When a form was submitted via The Contact Form 7 Logo for our integration Contact Form 7, delete an attachment via The WordPress Logo for our integration WordPress.
When a post was trashed via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When a custom button was clicked via The WP Webhooks Logo for our WP Webhooks integration WP Webhooks, delete an attachment via The WordPress Logo for our integration WordPress.
When an order was created via The Woocommerce Logo for our integration Woocommerce, delete an attachment via The WordPress Logo for our integration WordPress.
When a post was updated via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When a custom trigger was called via PHP via The WordPress Logo for our integration WordPress, delete an attachment via The WordPress Logo for our integration WordPress.
When broken links have been detected via The Broken Link Checker Logo for our WP Webhooks integration Broken Link Checker, 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 customer was deleted via The Woocommerce Logo for our integration Woocommerce, 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 coupon was updated via The Woocommerce Logo for our integration Woocommerce, 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 product was created via The Woocommerce Logo for our integration Woocommerce, delete an attachment via The WordPress Logo for our integration WordPress.
When a group access was granted via The LearnDash Logo for our WP Webhooks integration LearnDash, delete an attachment via The WordPress Logo for our integration WordPress.
When a plugin was deleted 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 an order was deleted via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, delete an attachment via The WordPress Logo for our integration WordPress.
When an order was deleted via The Woocommerce Logo for our integration Woocommerce, delete an attachment via The WordPress Logo for our integration WordPress.
When a product was deleted via The Woocommerce Logo for our integration Woocommerce, delete an attachment via The WordPress Logo for our integration WordPress.
When a form was submitted via The WPForms Logo for our integration WPForms, delete an attachment via The WordPress Logo for our integration WordPress.
When a form was submitted via The HappyForms Logo for our WP Webhooks integration HappyForms, delete an attachment via The WordPress Logo for our integration WordPress.

More available endpoints

Down below you will find a list of all available triggers and actions for the WordPress integration.
If you want 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.