That’s not entirely true, of course. The e-reader doesn’t know about the contents of an e-book until it reads the toc.xhtml file containing the nav element.
Editing this document determines what appears in the e-reader menu. Calibre or Sigil can do that after the e-book has been compiled by Scrivener.