Deactivating an Identity Domain
You might create an identity domain in IAM that you need only temporarily, for example, for testing purposes. You can deactivate the identity domain when it's not in use and then reactivate it when it's needed. An identity domain must be deactivated before it can be deleted.
You can't deactivate the Default identity domain or the identity domain to which you're signed in (the current domain).
Before you deactivate an identity domain, all Cloud, Oracle, Custom, and Enterprise applications must be deactivated. All applications created by App Services in Oracle Cloud Services (for example, AnalyticsINST-OAC1) must also be deactivated, but "entitlement" apps in Oracle Cloud Services (for example, ADWC) don't need to be deactivated.
Immediately after the administrator starts deactivating an identity domain, the identity domain moves to a deactivating state and users can no longer authenticate to it.
Paid tier identity domains continue to incur costs when deactivated. To avoid incurring additional costs, you should delete the identity domain.
Use the oci iam domain deactivate and required parameters to deactivate an identity domain:
oci iam domain deactivate --domain-id domain_ocid [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the DeactivateDomain operation to deactivate an identity domain.