wxList::DeleteContents

void DeleteContents(Bool destroy)

If destroy is TRUE, instructs the list to call delete on the client contents of a node whenever the node is destroyed. The default is FALSE.