Deletion call on Applications.Core/environments enumerates every application in the environment and deletes each application (which in turn deletes its resources) before removing the environment itself (pkg/cli/clients/management.go:675 ):
applications, _ := amc.ListApplicationsInEnvironment(ctx, name)
for _, application := range applications {
_, err := amc.DeleteApplication(ctx, *application.ID, false) // cascade: app -> its containers
}
the new type Radius.Core/environments deletes only the environment resource.
client := r.RadiusCoreClientFactory.NewEnvironmentsClient()
_, err := client.Delete(ctx, r.Workspace.Scope, r.EnvironmentName, ...) // environment only
Deletion call on Applications.Core/environments enumerates every application in the environment and deletes each application (which in turn deletes its resources) before removing the environment itself (pkg/cli/clients/management.go:675 ):
the new type Radius.Core/environments deletes only the environment resource.