WordPress at a glance
action is not described

delete_attachment action-hook . WP 2.0.0

Fires before an attachment is deleted, at the start of wp_delete_attachment().


add_action( 'delete_attachment', 'action_function_name_6165' );
function action_function_name_6165( $post_id ){
	// action...
Attachment ID.

Where the hook is called

wp-includes/post.php 5140
do_action( 'delete_attachment', $post_id );

Where the hook is used (in WP core)

wp-includes/default-filters.php 447
add_action( 'delete_attachment', '_delete_attachment_theme_mod' );
wp-admin/includes/class-wp-site-icon.php 72
add_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );