How to delete Panel variant programmatically I have a "node_view" panel pane, with a few variants.

Say a variant called node_view_panel_context_9, and I would like to delete this variant programmatically using code (from a hook_update_N hook to be specific). 

What are the correct API functions/methods to use?
I just had to do this recently. If the variant is exported to code (like in a Feature) this will revert it. Otherwise it will just delete it.

   function MY_MODULE_update_N() {
     ctools_include('export');
     $page = ctools_export_crud_load('page_manager_handlers', 'node_view__test123');
     ctools_export_crud_delete('page_manager_handlers', $page);
   }