編集

次の方法で共有


Remove-CsTeamsMeetingTemplatePermissionPolicy

Deletes an instance of TeamsMeetingTemplatePermissionPolicy.

Syntax

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

Identity of the policy instance to be deleted.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams