How to delete a control dynamically

Hi,
how can I delete dynamically a control in wxpython application?
I would delete a wxListCtrl and create a wxTreeCtrl on the fly.

Best regards

Gianluca