Yes, a hard reset will remove all data, settings, games and apps, and profiles from your Xbox One. It is a safe way to protect your privacy, especially when you are going to sell the Xbox One.