MCPcopy
hub / github.com/cloudfoundry/cli / QuickDeleteSpace

Function QuickDeleteSpace

integration/helpers/org_and_space.go:146–151  ·  view source on GitHub ↗

QuickDeleteSpace deletes the space with the given name, if it exists, using 'cf curl /v3/spaces... -X DELETE'.

(spaceName string)

Source from the content-addressed store, hash-verified

144// QuickDeleteSpace deletes the space with the given name, if it exists, using
145// 'cf curl /v3/spaces... -X DELETE'.
146func QuickDeleteSpace(spaceName string) {
147 guid := GetSpaceGUID(spaceName)
148 url := fmt.Sprintf("/v3/spaces/%s", guid)
149 session := CF("curl", "-X", "DELETE", url)
150 Eventually(session).Should(Exit(0))
151}

Calls 2

GetSpaceGUIDFunction · 0.85
CFFunction · 0.85

Tested by

no test coverage detected