wxList::DeleteObject

Bool DeleteObject(wxObject *object)

Finds the given client object and deletes the appropriate node from the list, returning TRUE if successful. The application must delete the actual object separately.