void destroy()

Destroys the view and all of the data structures associated with it.

Source

void destroy();