moai.FreeApp()
moai.FreeApp()
will delete the whole
application object and all of the children attached to it. After this call returns,
you could create a new application using the moai.CreateApp() function if you want.
Note that moai.FreeApp()
won't free MOAI objects which are currently in a detached
state. Those have to be freed by using moai.FreeObject().