To securely erase data when selling your PC, select the “Remove everything” option during the factory reset process, followed by 'Change settings' to enable full drive cleaning. This operation overwrites your data, making it much harder to recover. For additional security, consider using third-party software designed for data wiping before performing the factory reset.