# Infrastructure Manager V1 API - Module Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest::DeploymentReferencePolicy (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.1 1.1.0 1.0.2 0.6.0 0.5.0 0.4.0 0.3.1 0.2.1 0.1.0 Reference documentation and code samples for the Infrastructure Manager V1 API module Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest::DeploymentReferencePolicy.

Policy on how to handle referenced deployments when deleting the
DeploymentGroup.

## Constants

### DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED

**value:** 0  
The default behavior. If unspecified, the system will act as if
`FAIL_IF_ANY_REFERENCES_EXIST` is specified.

### FAIL_IF_ANY_REFERENCES_EXIST

**value:** 1  
Fail the deletion if any deployments currently referenced in the
`deployment_units` of the DeploymentGroup or in the latest revision
are not deleted.

### FAIL_IF_METADATA_REFERENCES_EXIST

**value:** 2  
Fail the deletion only if any deployments currently referenced in the
`deployment_units` of the DeploymentGroup are not deleted.
The deletion will proceed even if the deployments in the latest revision
of the DeploymentGroup are not deleted.

### IGNORE_DEPLOYMENT_REFERENCES

**value:** 3  
Ignore any deployments currently referenced in the
`deployment_units` of the DeploymentGroup or in the latest revision.