\HeaderA{deleteMVC}{Delete a MVC object}{deleteMVC}
\keyword{data}{deleteMVC}
\begin{Description}\relax
deleteMVC will remove a MVC object, which means that the data set is removed
and all of its views are closed.  deleteMVC performs the same functionality
as the Delete MVC menu item under the Edit menu on the control window.  This
function is meant to be called by users that are not using the GUI.  The
active MVC object cannot be deleted.  Only non-active MVC objects can be
deleted.
\end{Description}
\begin{Usage}
\begin{verbatim}
deleteMVC(dMVC)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{dMVC}] the name of the model (MVC) object to be removed 
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Elizabeth Whalen
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{loadData}{loadData}}, 
\code{\LinkA{getModelNames}{getModelNames}},
\code{\LinkA{getActiveMVC}{getActiveMVC}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  if (interactive())
  {
    loadData("USArrests")
    loadData("USJudgeRatings")
    setActiveMVC("USArrests")
    createSpreadsheet()
    setActiveMVC("USJudgeRatings")
    createSpreadsheet()
    # now delete the USArrests MVC (which is not active)
    deleteMVC("USArrests")
  }
\end{ExampleCode}
\end{Examples}

