App Lifecycle Manager lets you delete SaaS offerings, unit kinds, units, releases,
rollout kinds, rollouts, and tenants when you no longer need them. To protect
data integrity, App Lifecycle Manager blocks deletion when another resource
references the target. For example, you can't delete a unit kind while a unit
references it.

## App Lifecycle Manager resource dependency

This table describes the dependency relationships between App Lifecycle Manager
resources. The resource in the header column can only be deleted if there are no
resources from the header row that reference that resource instance. For
example, a unit kind resource cannot be deleted if a unit or release is
referencing the unit kind.

| **Resource type** | **Dependent types** | **Unit kind** | **Unit** | **Unit operation** | **Release** | **Rollout Kind** | **Rollout** | **Tenant** | **SaaS offering** | **Notes** |
|---|---|---|---|---|---|---|---|---|---|---|
| **Unit Kind** |   |   | X |   | X |   |   |   |   |   |
| **Unit** |   | X | X |   | X |   |   | X |   |   |
| **Unit Operation** |   |   | X |   |   |   | X |   |   |   |
| **Release** |   | X | X |   |   |   |   |   |   |   |
| **Rollout Kind** |   |   |   |   |   |   | X |   |   |   |
| **Rollout** |   |   |   | X |   |   |   |   |   |   |
| **Tenant** |   |   | X |   |   |   |   |   |   |   |
| **SaaS offering** |   | X |   |   |   |   |   | X |   |   |

> [!NOTE]
> **Note:** Unit operations are an exception. App Lifecycle Manager automatically deletes unit operations when you delete their associated unit.

## Before you begin

You should understand App Lifecycle Manager resource dependencies before you
attempt to delete App Lifecycle Manager resources. A resource cannot exist
without its dependencies.

## Delete a SaaS offering

You cannot delete a SaaS offering if any dependent unit kinds or tenants
reference it.

To delete a SaaS offering:

1. Go to **App Lifecycle Manager** \> **SaaS offerings**.

   [Go to SaaS offerings](https://console.cloud.google.com/saas/saasOfferings)
2. In the **Name** column, select the SaaS offering you want to delete.

3. Delete dependent unit kind resources. You can see a SaaS offering's dependent
   unit kind resources under the **Unit kinds** tab on the **SaaS offering details**
   page.

   For more information about deleting App Lifecycle Manager resources,
   see [delete Unit kinds](https://docs.cloud.google.com/app-lifecycle-manager/delete-resources.md.txt#delete-unit-kind).
4. On the **SaaS offering details** page, click **Delete**.

   You've successfully deleted a SaaS offering.

## Delete a unit kind

You must delete any dependent *unit* and *release* resources before you delete
a *unit kind*.

To delete a unit kind:

1. Go to **App Lifecycle Manager** \> **Unit kinds**.

   [Go to Unit kinds](https://console.cloud.google.com/saas/unitKinds)
2. In the **Name** column, select the unit kind you want to delete.

3. On the **Unit kind details** page, click **Delete** . A **Delete unit kind** dialog appears.

4. Set the **Default release** property of the unit kind to **No default
   release**.

5. Type the name of the unit kind you want to delete into the dialog.

6. Click **Delete** to delete the unit kind.

   You've successfully deleted a unit kind resource.

## Delete a unit

You must delete any dependent *unit* resources before you delete a unit.

To delete a unit:

1. Go to **App Lifecycle Manager** \> **Units**.

   [Go to Units](https://console.cloud.google.com/saas/units)
2. In the **Name** column, select the unit you want to delete.

3. Delete dependent unit resources. You can see a unit's dependent
   resources under the **Dependencies** tab on the **Unit details** page.

4. On the **Unit details** page, click **Delete** . A **Delete unit** dialog
   appears.

5. Type the name of the unit you want to delete into the dialog.

6. Click **Delete** to delete the unit.

   You've successfully deleted a unit resource.

### Delete a unit operation

App Lifecycle Manager automatically deletes unit operations when you delete their
associated unit. You cannot delete a unit operation if it's in progress.

## Delete a release

You cannot delete a *release* if:

- *Provisioned units* reference the release
- The release is set as the default release of a *unit kind* resource

You must delete any dependent *unit* resources before you delete a release.

To delete a release:

1. Go to **App Lifecycle Manager** \> **Releases**.

   [Go to Releases](https://console.cloud.google.com/saas/releases)
2. In the **Name** column, select the release you want to delete.

3. Delete all dependent units. You can see a release's dependent units
   under the **Units** tab on the **Release details** page. For information
   about deleting units, see
   [delete a Unit](https://docs.cloud.google.com/app-lifecycle-manager/delete-resources.md.txt#delete-unit).

4. Unset the default release field from any unit kinds that reference this
   release.

5. On the **Release details** page, click **Delete** . A **Delete release**
   dialog appears.

6. Type the name of the release you want to delete into the dialog.

7. Click **Delete** to delete the release.

   You've successfully deleted a release resource.

## Delete a rollout kind

You cannot delete a *rollout kind* if it's referenced by any *rollout* resources.

To delete a rollout kind:

1. Go to **App Lifecycle Manager** \> **Rollout kinds**.

   [Go to Rollout kinds](https://console.cloud.google.com/saas/rolloutKinds)
2. In the **Name** column, select the rollout kind you want to delete.

3. Delete all dependent rollouts. You can see a rollout kind's dependent
   rollout resources under the **Rollouts** tab on the **Rollout kind
   details** page. For information about deleting rollouts, see
   [delete a Rollout](https://docs.cloud.google.com/app-lifecycle-manager/delete-resources.md.txt#delete-rollout).

4. On the **Rollout details** page, click **Delete** . A **Delete rollout kind**
   dialog appears.

5. Type the name of the rollout kind you want to delete into the dialog.

6. Click **Delete** to delete the rollout kind.

   You've successfully deleted a rollout kind resource.

## Delete a rollout

You cannot delete a rollout if it's running. You must stop a running
rollout before you can delete it. When you delete a rollout, App Lifecycle Manager
deletes all sub-rollouts created by the global root rollout.

To delete a rollout:

1. Go to **App Lifecycle Manager** \> **Rollouts**.

   [Go to Rollouts](https://console.cloud.google.com/saas/rollouts)
2. In the **Name** column, select the rollout you want to delete.

3. Delete any dependent unit operations resources. For more information
   about deleting unit operations, see [Delete a unit operation](https://docs.cloud.google.com/app-lifecycle-manager/delete-resources.md.txt#delete-unit-operation).

4. On the **Rollout details** page, click **Delete** . A **Delete rollout**
   dialog appears.

5. Type the name of the rollout you want to delete into the dialog.

6. Click **Delete** to delete the rollout.

   You've successfully deleted a rollout resource.

## Delete a tenant

You cannot delete a tenant if any units (provisioned or unprovisioned)
reference it.

To delete a tenant:

1. Go to **App Lifecycle Manager** \> **Tenants**.

   [Go to Tenants](https://console.cloud.google.com/saas/tenants)
2. In the **Name** column, select the tenant you want to delete.

3. Disassociate any units from the tenant. For information about
   associating units with tenants, see [Associate a unit with a tenant](https://docs.cloud.google.com/app-lifecycle-manager/create-tenants.md.txt#associate_a_unit_with_a_tenant).

4. On the **Tenant details** page, click **Delete** . A **Delete tenant**
   dialog appears.

5. Type the name of the tenant you want to delete into the dialog.

6. Click **Delete** to delete the tenant.

   You've successfully deleted a tenant resource.

## What's next

- Learn more about [App Lifecycle Manager](https://docs.cloud.google.com/app-lifecycle-manager/overview.md.txt).
- Understand how to [design and package App Lifecycle Manager resources](https://docs.cloud.google.com/app-lifecycle-manager/model-saas-offering.md.txt).