Is it possible to programmatically delete a display from a view?
The view object has numerous member functions related to displays (add_display, attach_displays, choose_display, set_display, new_display, etc.) and I can also disable a display like this:
<?php $view_name = "faq"; $display_name = "page_1"; $view = views_get_view($view_name); $view->display[$display_name]->display_options['enabled'] = FALSE; views_save_view($view); ?>
But I can't see how I can remove the display completely. Can anyone advise? Thanks!