update hook to delete and bulk update pathauto aliases I have put all of my SEO settings into a feature, in order to migrate the settings from a dev site to a live site. Is there a way to write an update hook that will delete all of my existing content aliases and then bulk update them automatically?
I do it with the following method:

function MYMODULE_update_7100(&amp;$sandbox) {
  module_load_include('inc', 'pathauto');
  module_load_include('inc', 'pathauto.pathauto');

  // Delete the existing node aliases.
  db_delete('url_alias')
    -&gt;condition('source', 'node/%', 'LIKE')
    -&gt;execute();

  // Regenerate the node aliases.
  $nids = db_query("SELECT nid FROM {node}")-&gt;fetchCol();
  pathauto_node_update_alias_multiple($nids, 'bulkupdate');

  // Delete the topics taxonomy aliases.
  db_delete('url_alias')
    -&gt;condition('source', 'taxonomy/term/%', 'LIKE')
    -&gt;execute();

  // Regenerate the taxonomy aliases.
  $tids = db_query("SELECT tid FROM {taxonomy_term_data}")-&gt;fetchCol();
  pathauto_taxonomy_term_update_alias_multiple($tids, 'bulkupdate');
}