# RemovalPolicyOptions

- Source: [`core/lib/removal-policy.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/removal-policy.ts#L69)
- Type last changed: v2.72.0 · 29 Mar 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const removalPolicyOptions: cdk.RemovalPolicyOptions = {
  applyToUpdateReplacePolicy: false,
  default: cdk.RemovalPolicy.DESTROY,
};
```

## Properties

- `applyToUpdateReplacePolicy`: boolean = true — Apply the same deletion policy to the resource's "UpdateReplacePolicy".

- `default`: [RemovalPolicy](/cdk/api/v2/docs/aws-cdk-lib.RemovalPolicy.html) — The default policy to apply in case the removal policy is not defined.

  **Default:** Default value is resource specific. To determine the default value for a resource, please consult that specific resource's documentation.
