In which case I would lose my OS X license? I'm planning to install Arch linux on my Macbook Air (mid-2015), and installing means I'm going to mess with the partitions on the disk, and lots of stuff, and I'm not expert on these topics, so there is a chance that I might delete something important for OS X on the other partition, or about recovery partition etc.

So my question is in which cases I would lose my OS X license? I mean for example if I unintentionally delete the recovery partition would I lose anything? etc. 

What I'm trying to understand here is that what is the worst thing that I can do unintentionally during the installation?

Edit:
It would also be helpful if the answer contain how is licensing works for OS X on Macs.
The worst thing you can unintentionally do is lose data!

So, before doing anything, ensure you have a backup regime in place (such as using Time Machine). Once you know you have a backup, then the risk is limited to potentially wasting a lot of time reinstalling macOS if things go wrong and then migrating your data across from your backup.

If you do need to reinstall macOS, then you have three options you can try:


commandR to reinstall the latest macOS that was installed on your Mac, without upgrading to a later version 
optioncommandR to upgrade to the latest macOS that is compatible with your Mac
shiftoptioncommandR to reinstall the macOS that came with your Mac, or the version closest to it that is still available


But remember - you must have a backup regime in place!