Skip to content

Commit

Permalink
add flags to automatically delete orphaned routes and spaces without …
Browse files Browse the repository at this point in the history
…user input
  • Loading branch information
markdboyd committed Jun 25, 2024
1 parent 836f4cf commit e794cec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudfoundry/delete-org.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ for space_info in $(cf curl "/v3/spaces?organization_guids=$ORG_GUID" | jq -r '.
cf delete-route $ROUTE_DOMAIN $DELETE_ARGS -f
done

cf delete-orphaned-routes
cf delete-space "$SPACE_NAME" -o "$ORG"
cf delete-orphaned-routes -f
cf delete-space "$SPACE_NAME" -o "$ORG" -f
done

cf delete-org "$ORG"

echo "Organization $ORG and all of its resources have been deleted."
echo "Organization $ORG and all of its resources have been deleted."

0 comments on commit e794cec

Please sign in to comment.