I wanted to add a separate line saying "CHAPTER" in toc, but I don't want it to have a page number and to link anywhere. My current code is:

\documentclass[12pt]{report}

\usepackage[titles]{tocloft}
\usepackage{hyperref}

\begin{document}

\tableofcontents

\chapter{Some chapter}
\section{Some section 1}

\chapter{Some chapter 2}
\section{Some section 2}

\end{document}


In this way, there is no page number, but "CHAPTERS" is still clickable. How could I remove the hyperlink?

Use \addtocontents instead of \cftaddtitleline.

% titlelineprob.tex  SE 564030
\documentclass[12pt]{report}

\usepackage[titles]{tocloft}
\usepackage{hyperref}

\begin{document}

\tableofcontents