Commands › Exchange Online
Remove-VivaModuleFeaturePolicy
2.0 or later. For more information, see About the Exchange Online PowerShell module. Use the Remove-VivaModuleFeaturePolicy cmdlet to delete an access policy for a feature in a Viva module in Viva. Once you delete a policy, the policy is permanently deleted. You can't undo the deletion.
Quick start script
# Remove-VivaModuleFeaturePolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-VivaModuleFeaturePolicy
$before | Format-List
# 3. Make the change (dry run first)
Remove-VivaModuleFeaturePolicy -FeatureId <String> -ModuleId <String> -PolicyId <String> -WhatIf
Remove-VivaModuleFeaturePolicy -FeatureId <String> -ModuleId <String> -PolicyId <String>
# 4. Verify and diff
$after = Get-VivaModuleFeaturePolicy
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Remove-VivaModuleFeaturePolicy -FeatureId <String> -ModuleId <String> -PolicyId <String>
[-Confirm]
[-ResultSize <Unlimited>]
[-WhatIf]
[<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.