Is there a way of doing it without wipe?? if yes. which one. thanks
If you're working with the 2013 HTC One (M7), WeakSauce is a suitable root method for use with firewater, which can be used to get S-OFF. Once the phone is set to S-OFF, you have the option of installing a custom recovery and rooting with a more traditional method. You're free to uninstall WeakSauce after the phone has been permanently rooted
If you're on 4.2.2 there's rumrunner. If you're on 4.3 there's firewater. If you're on 4.4.2 you'll have to wait a bit.