How to Remove a Former CSP Partner from a Microsoft 365 Tenant
Question details
The user needs to remove a former Cloud Solution Provider (CSP) partner from their Microsoft 365 tenant using PowerShell because the standard removal UI is unavailable.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- The client currently purchases licenses directly from Microsoft, but the former partner's profile still appears in the tenant settings.
- Observed behavior
- The standard option to remove the CSP partner is missing or greyed out in the Microsoft 365 admin center.
Ensure you have Global Administrator privileges in your Microsoft 365 tenant and that the required Microsoft 365 PowerShell modules are installed on your device.
Use PowerShell to Remove the CSP Partner Contract
Execute specific PowerShell commands to identify and force-remove the partner contract when the admin center UI option is missing.
By leveraging Microsoft 365 PowerShell, administrators can bypass UI limitations and directly interact with the tenant's partner contracts.
Open PowerShell as an administrator and connect to your Microsoft 365 tenant using your Global Administrator credentials.
Run the command 'Get-PartnerContract' to retrieve a list of all active partner contracts. Locate the former CSP partner in the output and copy their specific 'ContractId'.
Run the command 'Remove-PartnerContract -ContractId <YourContractId>', replacing '<YourContractId>' with the ID you copied in the previous step. Press Enter to execute.

Contact Microsoft Online Technical Support
If PowerShell commands fail or return permission errors, escalate the issue to Microsoft Support for backend resolution.
Looking for a Cost-Effective Alternative to Microsoft 365?
Managing Microsoft 365 tenant settings, partner relationships, and expensive licenses can be overly complex for many users. If you want a lightweight, powerful, and free alternative, WPS Office provides everything you need to create, edit, and collaborate on documents without the hassle of complex subscription management.

Frequently Asked Questions
Why is the option to remove a CSP partner unavailable in the Microsoft 365 Admin Center?
This usually happens if the partner still holds active delegated admin privileges or if there are backend synchronization delays after you switched to direct Microsoft billing.
Will removing a CSP partner delete my user data or current licenses?
No, removing a partner only revokes their access and billing relationship with your tenant. It does not affect your tenant data or the licenses you have purchased directly from Microsoft.
What PowerShell module is required to run Get-PartnerContract?
You need the MSOnline (MSOL) module or the Microsoft Graph PowerShell module installed, and you must authenticate as a Global Administrator to successfully manage partner contracts.




