I need a way to mass delete aliases for given range of node ids. For example, say to mass delete url aliases for nodes ranging between node id 501 & 800.

I hope there is a some way to do so either through PHP code or through database query.

Help please

Comments

admin@azhark.com’s picture

Issue summary: View changes

Currently there is no direct query to delete path alias based on nid.
So you can do it with pid.

DELETE from url_alias where id between 501 and 800;

admin@azhark.com’s picture

Status: Active » Closed (outdated)