Correctly delete entries from the path db