# Remove section number from table of contents in scrartcl

How to remove the section number ("1" in the example below) in the toc of scrartcl?

• it does not matter if the section number is or is not stated in the text (I already know how to remove it there).

• I know, I could use a starred section and manually add it to the toc, but in my real document, I use them for something else with a different format

### MWE:

\documentclass{scrartcl}

\KOMAoption{sectionentrydots}{true}
\renewcommand*{\sectionformat}{}

\begin{document}

\tableofcontents

\section{non-star section}

\end{document}


Maybe you want something like

\documentclass{scrartcl}
\RedeclareSectionCommand[
%tocnumwidth=0pt,
tocentrynumberformat=\gobbleentrynumber
]{section}
\newcommand*\gobbleentrynumber[1]{}

\renewcommand*{\sectionformat}{}

\begin{document}
\tableofcontents
\section{non-star section}
\end{document}


Or if you uncomment tocnumwidth=0pt:

But I would use

\documentclass{scrartcl}

\KOMAoptions{
sectionentrydots=true,
toc=indenttextentries
}

\begin{document}
\tableofcontents

with or without toc=indenttextentries.