Before 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:
- In the case of a JRF domain, before you destroy the stack, clean up the RCU schema associated with the stack. See Delete a JRF Database Schema.
- In the case of a domain using IDCS, before you destroy the stack, clean up IDCS applications associated with the stack. See Delete the Identity Cloud Service Resources.
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 inWLSDRCompartment
.
Destroy a Stack
- Sign in to the Oracle Cloud Infrastructure console.
- Click the navigation menu , select Developer Services. Under Resource Manager group, select Stacks.
- From the Compartment drop-down, select
WLSDRCompartment
. - Click
DR-SITE1-STACK
, the stack you want to destroy. - Click Terraform Actions, and then click Destroy.
- When prompted for confirmation, click Destroy.
A job with type
Destroy
and stateAccepted
is added to the top of the table under Jobs. The name of the job is prefixed withdestroy-job
followed by the time stamp. For this destroy job, the name isdestroy-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
.
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.
Delete the Stack
- Sign in to the Oracle Cloud Infrastructure console.
- Click the navigation menu , select Developer Services. Under Resource Manager group, select Stacks.
- From the Compartment drop-down, select
WLSDRCompartment
, the compartment whereDR-SITE1-STACK
is located. - Click
DR-SITE1-STACK
. - Click the More Actions drop-down, and then click Delete Stack.
- When prompted for confirmation, click Delete.
The Stacks page refreshes immediately. You'll no longer see DR-SITE1-STACK
listed on the page.