How to change unit status to active or inactive

How to Activate or Deactivate a Unit?