Is it possible to create a TOC (table of contents) with
\subsections, but without the page numbers on the right hand side?
I know this defeats the purpose of a TOC but for knowledge's sake I want to know if LaTeX gives this flexibility.
LaTeX is flexible, especially if you are able to read sources to redefine macros.
Note: if you use hyperref, solutions should be modified since hyperref makes modifications to TOC macros for hyperlinking.