space/spaces.go
func (m *DefaultManager) DeleteSpace(space cfclient.Space, orgName string) error {
	if m.Peek {
		lo.G.Infof("[dry-run]: delete space with %s from org %s", space.Name, orgName)
		return nil
	}
	lo.G.Infof("delete space with %s from org %s", space.Name, orgName)
	return m.Client.DeleteSpace(space.Guid, true, false)
}
func (m *DefaultManager) DeleteSpace(space cfclient.Space, orgName string) error {
	if m.Peek {
		lo.G.Infof("[dry-run]: delete space with %s from org %s", space.Name, orgName)
		return nil
	}
	lo.G.Infof("delete space with %s from org %s", space.Name, orgName)
	return m.Client.DeleteSpace(space.Guid, true, false)
}
func ( m * DefaultManager ) DeleteSpace ( space cfclient . Space , orgName string ) error { if m . Peek { lo . G . Infof ( " " , space . Name , orgName ) return nil } lo . G . Infof ( " " , space . Name , orgName ) return m . Client . DeleteSpace ( space . Guid , true , false ) }
//DeleteSpace - deletes a space based on GUID
DeleteSpace - deletes a space based on GUID