The -r option deletes routes even if other applications are using them.
Steps to reproduce
First issue:
cf push myapp ...
cf push myapp2 ...
cf map-route myapp cfapps.io --hostname myhost
cf map-route myapp2 cfapps.io --hostname myhost
At this point cf routes shows:
space host domain path apps
development myapp cfapps.io myapp
development myapp2 cfapps.io myapp2
development myhost cfapps.io myapp,myapp2
Now issue cf delete:
cf routes then shows:
space host domain path apps
development myapp cfapps.io myapp
The route myhost.cfapps.io has been removed from myapp, which violates the principle of least surprise.
The
-roption deletes routes even if other applications are using them.Steps to reproduce
First issue:
At this point
cf routesshows:Now issue
cf delete:cf routesthen shows:The route
myhost.cfapps.iohas been removed frommyapp, which violates the principle of least surprise.