http-api: T6736: remove routes on config delete
Avoid duplicate entries in the list of routes when adding/deleting endpoints.