clear files and update password