Remove-UAPPolicy

Remove-UAPPolicy

SYNOPSIS

Deletes an access policy

SYNTAX

Remove-UAPPolicy -policyId <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Deletes an access policy.

EXAMPLES

Example 1

Remove-UAPPolicy -policyId aws_d880e53b-151e-414b-8f07-9ea55888abc3

Deletes the specified policy

Example 2

Get-UAPPolicy -status Expired | Remove-UAPPolicy

Deletes every expired policy

PARAMETERS

-policyId

The unique identifier of the policy to delete.

Type: String
Parameter Sets: (All)
Aliases: id

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
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

OUTPUTS

NOTES