Remove unnused path entries.