diff --git a/cloudfoundry/delete-org.sh b/cloudfoundry/delete-org.sh index 4943852..7784fbe 100755 --- a/cloudfoundry/delete-org.sh +++ b/cloudfoundry/delete-org.sh @@ -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." \ No newline at end of file +echo "Organization $ORG and all of its resources have been deleted."