deletes attachments when model is deleted