From e794cec4607b7eca76e6c135264d15e5678cb3a3 Mon Sep 17 00:00:00 2001 From: Mark Boyd Date: Tue, 25 Jun 2024 14:08:47 -0400 Subject: [PATCH] add flags to automatically delete orphaned routes and spaces without user input --- cloudfoundry/delete-org.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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."