# Class DeploymentReferencePolicy (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.21

    DeploymentReferencePolicy(value)

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

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED` | The default behavior. If unspecified, the system will act as if \`FAIL_IF_ANY_REFERENCES_EXIST\` is specified. |
| `FAIL_IF_ANY_REFERENCES_EXIST` | 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` | 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` | Ignore any deployments currently referenced in the \`deployment_units\` of the DeploymentGroup or in the latest revision. |