Performing a hard reset will erase all data on your device and it's recommended to log out of any Google accounts beforehand.
You can refer to the following video for steps on how to hard reset Xiaomi Redmi Note 5A:
Hard reset Xiaomi Redmi Note 5A
Congratulations, setup is now complete. Wishing you all success.
