Edit

Share via


Remove-CsTeamsMeetingTemplatePermissionPolicy

Deletes an instance of TeamsMeetingTemplatePermissionPolicy.

Syntax

Default (Default)

Remove-CsTeamsMeetingTemplatePermissionPolicy
    [-Identity] <string>
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Deletes an instance of TeamsMeetingTemplatePermissionPolicy. The Identity parameter accepts the identity of the policy instance to delete.

Examples

Example 1 - Deleting a meeting template permission policy

Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Test_Policy

Deletes a policy instance with the Identity Test_Policy.

Example 2 - Deleting a policy when its assigned to a user

Attempting to delete a policy instance that is currently assigned to users will result in an error. Remove the assignment before attempting to delete it.

Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Foobar
Remove-CsTeamsMeetingTemplatePermissionPolicy : The policy "Foobar" is currently assigned to one or more users. Assign a different policy to the users before removing
this one. Please refer to documentation. CorrelationId: 8698472b-f441-423b-8ee3-0469c7e07528
At line:1 char:1
+ Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Foobar
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-CsTeamsM...ermissionPolicy], PolicyRpException
    + FullyQualifiedErrorId : ClientError,Microsoft.Teams.Policy.Administration.Cmdlets.Core.RemoveTeamsMeetingTemplatePermissionPolicyCmdlet

Parameters

-Identity

Applicable: Microsoft Teams

Identity of the policy instance to be deleted.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.