Covalent organic frameworks as highly versatile materials for the removal and electrochemical sensing of organic pollutants.