You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/tutorial-delete-tenant.md
+49-28Lines changed: 49 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,14 @@ manager: CelesteDG
8
8
ms.service: active-directory
9
9
ms.workload: identity
10
10
ms.topic: tutorial
11
-
ms.date: 09/20/2021
11
+
ms.date: 08/30/2022
12
12
ms.author: kengaderdus
13
13
ms.subservice: B2C
14
14
---
15
15
16
16
# Clean up resources and delete the tenant
17
17
18
-
When you've finished the Azure AD B2C tutorials, you can delete the tenant you used for testing or training. To delete the tenant, you'll first need to delete all tenant resources. In this article, you'll:
18
+
When you've finished the Azure Active Directory B2C (Azure AD B2C) tutorials, you can delete the tenant you used for testing or training. To delete the tenant, you'll first need to delete all tenant resources. In this article, you'll:
19
19
20
20
> [!div class="checklist"]
21
21
> * Use the **Delete tenant** option to identify cleanup tasks
@@ -25,62 +25,83 @@ When you've finished the Azure AD B2C tutorials, you can delete the tenant you u
25
25
## Identify cleanup tasks
26
26
27
27
1. Sign in to the [Azure portal](https://portal.azure.com/) with a global administrator or subscription administrator role. Use the same work or school account or the same Microsoft account that you used to sign up for Azure.
28
-
1. Make sure you're using the directory that contains your Azure AD B2C tenant. Select the **Directories + subscriptions** icon in the portal toolbar.
29
-
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch**.
30
-
1. Select the **Azure Active Directory** service.
31
-
1. Under **Manage**, select **Properties**.
28
+
1. Make sure you're using the directory that contains your Azure AD B2C tenant:
29
+
1. Select the **Directories + subscriptions** icon in the portal toolbar.
30
+
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch** button next to it.
31
+
1. In the Azure portal, search for and select the **Azure Active Directory** service.
32
+
1. In the left menu, under **Manage**, select **Properties**.
32
33
1. Under **Access management for Azure resources**, select **Yes**, and then select **Save**.
33
-
1. Sign out of the Azure portal and then sign back in to refresh your access. Make sure you're using the directory that contains your Azure AD B2C tenant. Select the **Directories + subscriptions** icon in the portal toolbar.
34
-
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch**.
35
-
1. Select the **Azure Active Directory** service.
36
-
1. On the **Overview** page, select **Delete tenant**. The **Required action** column indicates the resources you'll need to remove before you can delete the tenant.
34
+
1. Sign out of the Azure portal and then sign back in to refresh your access.
35
+
1. Repeat step two to make sure you're using the directory that contains your Azure AD B2C tenant.
36
+
1. In the Azure portal, search for and select the **Azure Active Directory** service
37
+
1. On the **Overview** page, select **Manage tenants**.
38
+
1. On the **Manage tenants** page, select (by check marking) the tenant you want to delete, and then, at the top of the page, select the **Delete** button. The **Required action** column indicates the resources you need to remove before you can delete the tenant.
If you have the confirmation page open from the previous section, you can use the links in the **Required action** column to open the Azure portal pages where you can remove these resources. Or, you can remove tenant resources from within the Azure AD B2C service using the following steps.
44
+
If you've the confirmation page open from the previous section, you can use the links in the **Required action** column to open the Azure portal pages where you can remove these resources. Or, you can remove tenant resources from within the Azure AD B2C service using the following steps.
43
45
44
46
1. Sign in to the [Azure portal](https://portal.azure.com/) with a global administrator or subscription administrator role. Use the same work or school account or the same Microsoft account that you used to sign up for Azure.
45
-
1. Make sure you're using the directory that contains your Azure AD B2C tenant. Select the **Directories + subscriptions** icon in the portal toolbar.
46
-
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch**.
47
-
1. Select the **Azure AD B2C** service. Or use the search box to find and select **Azure AD B2C**.
48
-
1. Delete all users *except* the admin account you're currently signed in as: Under **Manage**, select **Users**. On the **All users** page, select the checkbox next to each user (except the admin account you're currently signed in as). Select **Delete**, and then select **Yes** when prompted.
47
+
1. Make sure you're using the directory that contains your Azure AD B2C tenant:
48
+
1. Select the **Directories + subscriptions** icon in the portal toolbar.
49
+
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch** button next to it.
50
+
1. In the Azure portal, select the **Azure AD B2C** service, or search for and select **Azure AD B2C**.
51
+
1. Delete all users *except* the admin account you're currently signed in as:
52
+
1. Under **Manage**, select **Users**.
53
+
1. On the **All users** page, select the checkbox next to each user (except the admin account you're currently signed in as).
54
+
1. At the top of the page, select **Delete user**, and then select **Yes** when prompted.
1. Delete app registrations and the *b2c-extensions-app*: Under **Manage**, select **App registrations**. Select the **All applications** tab. Select an application, and then select **Delete**. Repeat for all applications, including the **b2c-extensions-app** application.
58
+
1. Delete app registrations and the *b2c-extensions-app*:
59
+
1. Under **Manage**, select **App registrations**.
60
+
1. Select the **All applications** tab.
61
+
1. Select an application to open it, and then select **Delete** button. Repeat for all applications, including the **b2c-extensions-app** application.
1. Delete any identity providers you configured: Under **Manage**, select **Identity providers**. Select an identity provider you configured, and then select **Remove**.
65
+
1. Delete any identity providers you configured:
66
+
1. Under **Manage**, select **Identity providers**.
67
+
1. Select an identity provider you configured, and then select **Remove**.
1. Delete user flows: Under **Policies**, select **User flows**. Next to each user flow, select the ellipses (...) and then select **Delete**.
71
+
1. Delete user flows:
72
+
1. Under **Policies**, select **User flows**.
73
+
1. Next to each user flow, select the ellipses (...) and then select **Delete**.
61
74
62
75

63
76
64
-
1. Delete policy keys: Under **Policies**, select **Identity Experience Framework**, and then select **Policy keys**. Next to each policy key, select the ellipses (...) and then select **Delete**.
77
+
1. Delete policy keys:
78
+
1. Under **Policies**, select **Identity Experience Framework**, and then select **Policy keys**.
79
+
1. Next to each policy key, select the ellipses (...) and then select **Delete**.
65
80
66
-
1. Delete custom policies: Under **Policies**, select **Identity Experience Framework**, select **Custom policies**, and then delete all policies.
81
+
1. Delete custom policies:
82
+
1. Under **Policies**, select **Identity Experience Framework**, and then select **Custom policies**.
83
+
1. Next to each Custom policy, select the ellipses (...) and then select **Delete**.
67
84
68
85
## Delete the tenant
69
86
87
+
Once you delete all the tenant resources, you can now delete the tenant itself:
88
+
70
89
1. Sign in to the [Azure portal](https://portal.azure.com/) with a global administrator or subscription administrator role. Use the same work or school account or the same Microsoft account that you used to sign up for Azure.
71
-
1. Make sure you're using the directory that contains your Azure AD B2C tenant. Select the **Directories + subscriptions** icon in the portal toolbar.
72
-
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch**.
73
-
1. Select the **Azure Active Directory** service.
90
+
1. Make sure you're using the directory that contains your Azure AD B2C tenant:
91
+
1. Select the **Directories + subscriptions** icon in the portal toolbar.
92
+
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the **Directory name** list, and then select **Switch** button next to it.
93
+
1. In the Azure portal, search for and select the **Azure Active Directory** service.
74
94
1. If you haven't already granted yourself access management permissions, do the following:
75
95
76
-
* Under **Manage**, select **Properties**.
77
-
* Under **Access management for Azure resources**, select **Yes**, and then select **Save**.
78
-
* Sign out of the Azure portal and then sign back in to refresh your access, and select the **Azure Active Directory** service.
96
+
1. Under **Manage**, select **Properties**.
97
+
1. Under **Access management for Azure resources**, select **Yes**, and then select **Save**.
98
+
1. Sign out of the Azure portal and then sign back in to refresh your access, and select the **Azure Active Directory** service.
79
99
80
-
1. On the **Overview** page, select **Delete tenant**.
100
+
1. On the **Overview** page, select **Manage tenants**.
81
101
82
-

102
+
:::image type="content" source="media/tutorial-delete-tenant/manage-tenant.png" alt-text="Screenshot of how to manage tenant for deletion.":::
83
103
104
+
1. On the **Manage tenants** page, select (by check marking) the tenant you want to delete, and then, at the top of the page, select the **Delete** button
84
105
1. Follow the on-screen instructions to complete the process.
0 commit comments