Add an attachment delete with children function