delete before local changes