How to remove url alias when node is deleted I am using Pathauto. When I deleted a piece of content, I was surprised to find that its url alias was still mapped to the now-nonexistent content (node/xxx). 

How can I have this alias and System name mapping removed automatically when the node is deleted?

Edit:
I want to keep the Update action set to "Do nothing. Leave the old alias intact.", because I don't want paths to change when nodes are adjusted. However, it doesn't make sense to keep a path around if the node was deleted completely. Can I have both options somehow?
You can use hook_node_delete:

function hook_node_delete($node){
    // Delete alias.
    $path = path_load(
      array('source' =&gt; 'node/'.$node-&gt;nid)
    );

    path_delete($path['pid']);
}