[Tex/LaTex] How to remove line in header

header-footerrules

I am using mdframed in header but line still appears as shown below. How can I remove that line?.

enter image description here
Regards

Best Answer

Assuming that you are using the fancyhdr to make the header, simply redefine \headrule to do nothing:

\renewcommand\headrule{}