Remove JCPolicyGroupTemplate - TheJumpCloud/support GitHub Wiki

Remove-JCPolicyGroupTemplate

SYNOPSIS

Deletes a Policy Group Template

SYNTAX

ByName

Remove-JCPolicyGroupTemplate -Name <String> [-Force] [<CommonParameters>]

ByID

Remove-JCPolicyGroupTemplate -GroupTemplateID <String> [-Force]
 [<CommonParameters>]

DESCRIPTION

Remove-JCPolicyGroupTemplate deletes policy group templates defined in an MTP organization. Policy Group Templates are defined on the MTP level for all organizations to access.

EXAMPLES

Example 1

PS C:\> Remove-JCPolicyGroupTemplate -GroupTemplateID "64022e24f7763b2295302342"

Removes the Policy Group Template with id: 64022e24f7763b2295302342

Example 2

PS C:\> Remove-JCPolicyGroupTemplate -name "PolicyGroupName"

Removes the Policy Group Template with name: PolicyGroupName

PARAMETERS

-Force

A SwitchParameter which suppresses the warning message when removing a JumpCloud policy group template.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GroupTemplateID

The ID of the JumpCloud policy group template you wish to remove.

Type: System.String
Parameter Sets: ByID
Aliases: _id, id

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Name

The Name of the JumpCloud policy group template you wish to remove.

Type: System.String
Parameter Sets: ByName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

System.String

OUTPUTS

System.Object

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️