implement attachment delete