Deleting an Identity Domain

Delete an identity domain in a tenancy in IAM.

Before you can delete an identity domain, you must deactivate the apps in the identity domain and then deactivate the identity domain. See Deactivating an Identity Domain.

Deleting an identity domain irreversibly deletes all users, groups, applications, and other resources in the domain. Any policies granting permissions to users, groups, or dynamic groups in the domain are no longer in effect after the domain is deleted. We recommend updating such policies to remove references to the identity domain name or the identity domain's resources, or deleting them altogether. Deleting an identity domain also invalidates any IAM policy that references it.

    1. On the Domains list page, under List scope, select the compartment in which you want to delete the identity domain. If you need help finding the list page, see Listing Identity Domains. See also Managing Compartments.
    2. Select the name of the identity domain you want to delete.
    3. Select Delete.
    4. Read the warning and then type the name of the identity domain to confirm the deletion.
    5. Select Delete.
  • Use the oci iam domain delete command and required parameters to delete an identity domain:

    oci iam domain delete --domain-id domain_ocid [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the DeleteDomain operation to delete an identity domain.