How can i clear user data on flash?

I save user data with EWR. If saving data to flash failed for some unkown reason, I always failed to saving data. I clear the storage of user data using MFDeploy.exe, then saving data is ok again, why?