If you want to erase all your data then you would need to perform the hard reset on your xiaomi redmi phone to clean all the data. Every type of data would be erased of your phone.