Drupal - How do you delete a content type's URL aliases in bulk?
I'd do it as an SQL query. Run as a SELECT first, to verify that all is well:
SELECT alias FROM node n JOIN url_alias u ON CONCAT('node/', n.nid) = u.source WHERE n.type='my_type'
then edit it to make it a DELETE:
DELETE u FROM node n JOIN url_alias u ON CONCAT('node/', n.nid) = u.source WHERE n.type='my_type'
I'd go with Views Bulk Operations.
- set the pathauto path for the content type to the default you want, but don't bulk update
- create simple view for the content type you're interested in
- add the field Bulk Opertations: Content
- Under Bulk Operations Settings check Enable "Select all items on all pages"
- select Update Node Alias
- add filters as required
navigate to the view page, select all, uncheck any special cases, and give it a whirl
but maybe backup first