MICROSOFT 365 ADMINISTRATION GUIDE How to Remove Licenses in Microsoft 365:
A Complete Step-by-Step Guide
Introduction
Managing software licenses is one of the most important responsibilities of a Microsoft 365 administrator. Whether you are offboarding an employee, cutting IT costs, or reorganizing your team structure, knowing how to remove Microsoft 365 licenses quickly and safely is a critical skill.
Microsoft 365 (formerly Office 365) licenses give users access to a suite of productivity tools including Exchange Online (email), SharePoint, Teams, OneDrive, and the full Office apps like Word, Excel, and PowerPoint. Each license comes at a monthly or annual cost — so unused or unneeded licenses directly affect your organization’s IT budget.
This guide walks you through everything you need to know about removing and unassigning Microsoft 365 licenses — using the Admin Center, Azure Active Directory (Entra ID), and PowerShell — with clear, beginner-friendly instructions at every step.
| 💡 Why This Matters ✔ Cost savings — Unused licenses still cost money. Removing them saves budget. ✔ Security — Former employees retaining access is a security risk. ✔ Compliance — License audits are required in many regulated industries. ✔ Efficiency — Reassigning freed licenses reduces procurement delays. |
What Happens When You Remove a License?
Before you unassign a Microsoft 365 license, it is essential to understand what that action actually does. Removing a license does not delete a user’s account — but it does immediately cut off access to several services.
Services Affected Immediately
- Exchange Online (email): The user can no longer send or receive emails. Their mailbox becomes inactive.
- Microsoft Teams: The user loses access to Teams meetings, chats, and calls.
- SharePoint & OneDrive: Files stored in OneDrive become inaccessible to the user (but are not deleted right away).
- Office Apps: Word, Excel, PowerPoint, and other apps enter read-only mode or stop working.
- Intune / Device Management: Managed device policies may no longer apply.
Data Retention After License Removal
Microsoft retains mailbox and OneDrive data for a period after license removal — typically 30 days for mailboxes and 93 days for OneDrive, depending on your plan. After this retention window, the data is permanently deleted unless you act.
| ⚠️ Important: Data Retention Periods Exchange Mailbox: Data retained for 30 days after license removal.OneDrive Files: Data retained for 93 days (configurable by admin).Teams Messages: Chat history may persist in compliance records.SharePoint: Site data is not affected by individual license removal.Action Required: Export or transfer data BEFORE the retention window expires. |
Prerequisites
Required Admin Roles
To remove or unassign licenses in Microsoft 365, your account must have one of the following admin roles:
| Admin Role | Permissions |
| Global Administrator | Full access to all M365 settings including license management |
| License Administrator | Can assign and remove licenses for users |
| User Administrator | Can manage user accounts, including license assignments |
| Billing Administrator | Can view and manage subscriptions (not user-level removal) |
Precautions Before Removing Licenses
- Export user data: Back up emails, OneDrive files, and Teams chats before removing access.
- Check dependencies: Some services (like shared mailboxes) may rely on the user’s license.
- Review group-based licensing: If the user is in a group that auto-assigns licenses, remove the user from the group first.
- Communicate with the user: If the user is still active, notify them before removing access to avoid disruption.
- Check for active sessions: Sign the user out of all sessions before removing licenses for security.
Methods to Remove Licenses in Microsoft 365
Method 1: Using the Microsoft 365 Admin Center
The Microsoft 365 Admin Center is the most straightforward way to remove or unassign a license — no technical knowledge required. This is the recommended method for beginners.
Follow these steps to remove a license from a single user:
| 1 | Sign in to the Microsoft 365 Admin Center at admin.microsoft.com using your admin credentials. |
| 2 | In the left navigation menu, click Users → Active Users. |
| 3 | Search for or click on the user whose license you want to remove. |
| 4 | In the user’s profile panel that slides out from the right, click the Licenses and Apps tab. |
| 5 | Uncheck the checkbox next to the license(s) you want to remove (e.g., Microsoft 365 Business Premium). |
| 6 | Click Save changes at the bottom of the panel. The license is removed immediately. |
| Figure 1: Removing a license from a user via the Microsoft 365 Admin Center (Active Users → Licenses and Apps tab) |
| ✅ Pro TipYou can use the search bar in Active Users to quickly find users by name, email, or department. This is especially useful in large organizations with hundreds of accounts. |
Method 2: Using Azure Active Directory (Microsoft Entra ID)
Microsoft Entra ID (formerly Azure Active Directory) gives admins a more granular view of user license assignments. This method is useful when managing licenses alongside identity and access management tasks.
| 1 | Go to portal.azure.com and sign in with your admin account. |
| 2 | In the left sidebar, click Microsoft Entra ID (or search for it in the top bar). |
| 3 | Click Users under the Manage section. |
| 4 | Search for and click on the user whose license you want to unassign. |
| 5 | On the user’s overview page, click Licenses in the left panel under Manage. |
| 6 | Select the checkbox next to the license(s) you want to remove. |
| 7 | Click Remove in the toolbar at the top. Confirm when prompted. |
| Figure 2: Unassigning a Microsoft 365 license from the Azure Portal (Entra ID → Users → Licenses → Remove) |
| 🔍 Note on Group-Based Licensing In Entra ID, you can also see if a license was assigned directly or through a group. If it shows ‘Inherited from group’, you must remove the user from that group to fully remove the license — you cannot unassign it directly. |
Method 3: Using PowerShell
PowerShell is the most powerful method for managing Microsoft 365 licenses — especially when you need to automate tasks or work with large numbers of users.
Option A: MSOnline Module (Classic)
Step 1 — Install and connect to MSOnline:
| # Install MSOnline module (run once)Install-Module MSOnline # Connect to your tenantConnect-MsolService |
Step 2 — Verify the user’s current licenses:
| Get-MsolUser -UserPrincipalName “user@domain.com” | Select-Object Licenses |
Step 3 — Remove the license:
| # Remove a specific license from a userSet-MsolUserLicense -UserPrincipalName “user@domain.com” -RemoveLicenses “contoso:ENTERPRISEPACK” # ENTERPRISEPACK = Microsoft 365 E3. Replace ‘contoso’ with your tenant prefix. |
| Figure 3: PowerShell terminal showing the Set-MsolUserLicense command being used to remove a Microsoft 365 license |
Option B: Microsoft Graph PowerShell (Recommended for New Scripts)
| # Install and connect to Microsoft GraphInstall-Module Microsoft.GraphConnect-MgGraph -Scopes “User.ReadWrite.All”, “Directory.ReadWrite.All” # Remove the license (use the license SkuId GUID)Set-MgUserLicense -UserId “user@domain.com” \ -RemoveLicenses @(“6fd2c87f-b296-42f0-b197-1e91e994b900”) -AddLicenses @{} # Find your license SKU IDs with:Get-MgSubscribedSku | Select-Object SkuPartNumber, SkuId |
Bulk License Removal
When you need to remove licenses from many users at once, manual removal is impractical. Microsoft 365 offers two efficient approaches for bulk license management.
Using the Admin Center (Multiple Users)
| 1 | Go to admin.microsoft.com → Users → Active Users |
| 2 | Select multiple users by checking the checkboxes next to their names. |
| 3 | In the toolbar that appears, click Manage product licenses. |
| 4 | Choose Remove all product licenses or replace with a different license. |
| 5 | Click Save changes. All selected users are updated simultaneously. |
Bulk Removal with PowerShell Script
For large-scale offboarding, PowerShell is the most efficient tool. The script below reads user emails from a CSV file and removes a specific license from each.
| # bulk_remove_licenses.ps1 — reads CSV with column: UserPrincipalName Connect-MsolService $users = Import-Csv -Path “C:\users_to_offboard.csv” $licenseToRemove = “contoso:ENTERPRISEPACK” foreach ($user in $users) { try { Set-MsolUserLicense -UserPrincipalName $user.UserPrincipalName -RemoveLicenses $licenseToRemove Write-Host “Removed: ” $($user.UserPrincipalName) -ForegroundColor Green } catch { Write-Host “FAILED: ” $($user.UserPrincipalName) $_ -ForegroundColor Red } } |
Common Issues and Troubleshooting
Issue 1: License Does Not Appear to Be Removed
Cause: The license may be assigned via a group-based licensing policy.
Fix: Go to Entra ID → Users → [User] → Licenses. If the source says ‘Inherited’, remove the user from the relevant Azure AD group.
Issue 2: Mailbox Still Active After License Removal
Cause: Exchange Online holds the mailbox for 30 days during the retention period.
Fix: Convert the mailbox to a shared mailbox to preserve email access without a paid license (Exchange Admin Center → Mailboxes → Convert to Shared).
Issue 3: Azure AD Connect Sync Conflicts
Cause: In hybrid environments, cloud changes may be overwritten during the next sync cycle.
Fix: Manage license assignments through the cloud or use group-based licensing in Entra ID for consistency.
Issue 4: PowerShell Returns ‘License Not Found’
Cause: The license SKU string is incorrect, or the user does not have that license assigned.
Fix: Run Get-MsolUser to verify the exact license strings assigned to the user before running the removal command.
Best Practices for License Management
1. Audit Licenses Regularly
Schedule a monthly or quarterly license audit. Go to Billing → Licenses in the Admin Center to see assigned vs. available licenses. Microsoft 365 Usage Analytics in Power BI can show inactive users who still hold licenses.
2. Use Group-Based Licensing for Consistency
Create Azure AD groups (e.g., ‘Sales-Team-M365-E3’) and assign licenses at the group level. When you remove a user from the group, the license is automatically revoked — no manual action needed.
3. Backup Data Before Removing Licenses
Always use Microsoft’s eDiscovery tools or third-party backup solutions (Veeam, AvePoint) to preserve user data before license removal. Remember: 30-day Exchange and 93-day OneDrive retention windows.
4. Convert Departing Users to Shared Mailboxes
When offboarding employees, convert their mailbox to a shared mailbox before removing the license. Shared mailboxes do not require a paid license for up to 50 GB of storage.
5. Monitor and Log License Changes
Enable Unified Audit Logging in the Microsoft Purview compliance portal. License assignment and removal events are logged and can be reviewed for disputes or compliance audits.
Conclusion
Removing or unassigning Microsoft 365 licenses is a routine but critically important administrative task. Whether you use the Microsoft 365 Admin Center for quick individual changes, Azure Entra ID for identity-focused management, or PowerShell for bulk automation, each method has its place depending on your needs and technical comfort level.
The key takeaways: always check data retention windows before removing licenses, watch for group-based licensing conflicts, use PowerShell scripts for bulk operations, and perform regular audits to avoid paying for unused licenses.
| 🎯 Key Takeaways ✔ Use the Admin Center for quick, one-at-a-time license removal. ✔ Use Entra ID when managing licenses alongside group and identity policies. ✔ Use PowerShell for automation and bulk operations. ✔ Always back up user data before removing licenses. ✔ Watch for group-based licensing — it overrides manual changes. ✔ Convert departing users to shared mailboxes to preserve email data. ✔ Conduct regular license audits to optimize costs. |
Frequently Asked Questions (FAQs)
| Q | Will removing a Microsoft 365 license delete the user’s account? |
No. Removing a license only revokes access to licensed services. The user account remains active in Azure AD. You would need to separately disable or delete the account if required.
| Q | Can I reassign a license immediately after removing it from one user? |
Yes. Once you remove a license from a user, it becomes available in your pool immediately and can be assigned to another user right away — no waiting period.
| Q | What is the difference between removing a license and deleting a user? |
Removing a license takes away service access — the account still exists. Deleting a user removes the account entirely and places it in a 30-day soft-delete state before permanent deletion.
| Q | How do I find which users have licenses but are not actively using them? |
In the Admin Center, go to Reports → Usage. The Active Users reports for each service show last activity dates. Microsoft 365 Usage Analytics via Power BI provides deeper reporting on inactive licensed users.
| Q | Is it possible to remove licenses from guest users or external accounts? |
Guest users typically do not consume paid licenses the same way as member accounts. However, if a guest was assigned an explicit license, you can remove it the same way — via Admin Center or PowerShell — using the guest’s User Principal Name.





