wp_delete_attachment_files ( $post_id, $meta, $backup_sizes, $file )
- (int) post_id Attachment ID.
- (array) meta The attachment's meta data.
- (array) backup_sizes The meta data for the attachment's backup images.
- (string) file Absolute path to the attachment's file.
- (bool) True on success, false on failure.
- Introduced in WordPress: 4.9.7
- Deprecated in WordPress: —
Deletes all files that belong to the given attachment.