# listoffigures without dots and hfill for pagenumbers

I'm using documentclass scrbook and want to remove the dotted lines and hfill for page numbers in a List of Figures.

\RedeclareSectionCommands[
tocraggedpagenumber=true,
]{part,chapter,section,subsection}


I think it's a simple question, but I've not found a specific discussion or solution here. Any hints are highly appreciated. I'm sorry if I'm doubling something.

There is the macro \DeclareTOCStyleEntry contained in KOMA. With it you can do the following:

\documentclass[]{scrbook}

\usepackage[]{graphicx}

\begin{document}
\listoffigures

\begin{figure}% >>>
\centering
\includegraphics{example-image-duck}%
\caption
{%
A Friendly Duck%
\label{fig:duck}%
}%
\end{figure}% <<<

\end{document}