The author did mention though that they were unable to log out of iCloud, as that requires to be logged in to iCloud. That would prevent reuse of the device with a different account.