How to clear data, factory reset and hard pin reset