How to disable compare function in products

Theme option – dynamic comparison and delete Comparison page