delete attachments when model is removed