Oracle by Example brandingDelete a Stack for Oracle WebLogic Server for Oracle Cloud Infrastructure

section 0Before You Begin

This 10-minute tutorial shows you how to destroy and delete a stack associated with Oracle WebLogic Server for Oracle Cloud Infrastructure (Oracle WebLogic Server for OCI) domain by using Resource Manager.

Background

A stack includes a basic Oracle WebLogic Server 12c domain, one or more WebLogic Server compute instances, network resources, and an optional load balancer. You can destroy and delete the stack when you no longer need an Oracle WebLogic Server for OCI domain.

Before you delete a stack, you have to destroy the stack. The destroy job terminates the compute instance or instances for the domain but retains the stack's state and job history. The delete job removes the stack permanently, including all related resources that were created for the domain, such as compute instances, networking components, and load balancer components.

Note:

This tutorial deletes the stack DR-SITE1-STACK located in the WLSDRCompartment compartment.

What Do You Need?

  • An Oracle Cloud Infrastructure cloud tenant.
  • An Oracle Cloud Infrastructure user name and password.
  • The stack DR-SITE1-STACK created in WLSDRCompartment.

section 1Destroy a Stack

  1. Sign in to the Oracle Cloud Infrastructure console.
  2. Click the navigation menu Menu icon, select Developer Services. Under Resource Manager group, select Stacks.
  3. From the Compartment drop-down, select WLSDRCompartment.
  4. Click DR-SITE1-STACK, the stack you want to destroy.
  5. Click Terraform Actions, and then click Destroy.
  6. When prompted for confirmation, click Destroy.

    A job with type Destroy and state Accepted is added to the top of the table under Jobs. The name of the job is prefixed with destroy-job followed by the time stamp. For this destroy job, the name is destroy-job-20201021173434.

    After a few minutes, the state of the job changes to In Progress.

    You may have to wait for some time for the destroy job to change its state to Succeeded.

  7. Note: If the networking resources created by DR-SITE1-STACK are still in use by other compute instances (not created by DR-SITE1-STACK), the destroy job fails. Check the resources and delete them manually.


section 2Delete the Stack

  1. Sign in to the Oracle Cloud Infrastructure console.
  2. Click the navigation menu Menu icon, select Developer Services. Under Resource Manager group, select Stacks.
  3. From the Compartment drop-down, select WLSDRCompartment, the compartment where DR-SITE1-STACK is located.
  4. Click DR-SITE1-STACK.
  5. Click the More Actions drop-down, and then click Delete Stack.
  6. When prompted for confirmation, click Delete.

The Stacks page refreshes immediately. You'll no longer see DR-SITE1-STACK listed on the page.


more informationWant to Learn More?