Skip to content

cf delete app -r deletes shared routes #751

@glyn

Description

@glyn

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 delete myapp2 -f -r

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions