Default Unlocking Htc One: S-Off And Warranty

Hi everyone, I have an Htc One (M7) still locked, original, not touched yet.
I want to unlock now, but I now I'll lose warranty, but I'm asking this:
If I unlock, ok I'll lose warranty (Is there any way to not lose?), but can I delete the message in bootloader relocked?
Thanks!