I would like to add something in the above answers. System apps cannot be deleted in a full factory reset, unlike user apps. So if you want to delete all your personal files but they are too many to be deleted conveniently that a factory reset is only the most convenient, and you have apps you want to keep, you can convert those apps to system apps so that they won't be erased during the factory reset.