Delete the Identity Cloud Service Resources

If the Oracle WebLogic Server for OKE domain you want to delete was configured to use Oracle Identity Cloud Service for authentication, then you must delete the security resources for the domain before you destroy the stack.

You'll need the client ID and secret of an existing confidential application in Oracle Identity Cloud Service. See Create a Confidential Application.

  1. From your computer, run the ssh command to connect to the domain's Administration Server node as the opc user.
    ssh -i path_to_private_key opc@node_IP_address

    For example:

    ssh -i /home/myuser/mykey opc@203.0.113.13
  2. If prompted, enter the passphrase for the private key.
  3. Run the following command to delete the security resources for this domain.

    Provide the client ID and secret of the confidential application in Oracle Identity Cloud Service.

    sudo su oracle -c '/opt/scripts/idcs/delete_idcs_applications.sh idcs_app_client_id idcs_app_client_secret'

    Sample output:

    Deactivating App Gateway gateway_name...
    Deleting App Gateway gateway_name...
    Deactivating application enterprise_app_name...
    Deleting application enterprise_app_name...
    Deactivating application confidential_app_name...
    Deleting application confidential_app_name...