You can archive the inactive habits for temporary.
Swipe left > enter the detail page > click the three dots on the top-right corner and archive the habit.
Note: if you choose the “Delete”, all the data to do with the habit will be removed and cannot be restored.