Usually, when you use section*{}only the section will be removed from the toc. In order to remove subordinated subsections you have to add the *.
Is it possible to define a command that removes subordinated levels automatically when you remove higher level headlines from the toc? This could save some time.
In the document:
\section*{}
\subsection{}
With the desired adjustment both (the section and the subsection) would be removed -- even though only the section is provided with the *.
An ideal solution would be able to remove all subordinated levels regardless of whether they are used for parts, sections, subsections, subsubsections, paragraphs etc.

secnumdepthto get only unnumbered sections and subsection. With the help of the packagetocvsec2you can also change locallytocdepth. – Ulrike Fischer Jul 30 '12 at 16:01