implementing MsgFile on delete