dired-hide-all
dired-hide-all is an interactive autoloaded compiled Lisp function in `dired-aux.el
'.
(dired-hide-all &optional IGNORED)
Hide all subdirectories, leaving only their header lines.
If there is already something hidden, make everything visible again.
Use M-x dired-hide-subdir to (un)hide a particular subdirectory.