remove unused attachments