Compartilhar via


Remove-AdminDlpPolicy

Deletes the specific Api policy. Delete is successful when the cmdlet returns a 202 response. A 204 response means it didn't delete.

Syntax

Remove-AdminDlpPolicy
      -PolicyName <String>
      [-EnvironmentName <String>]
      [-ApiVersion <String>]
      [<CommonParameters>]

Description

The Remove-AdminDlpPolicy cmdlet deletes a DLP policy. Use Get-Help Remove-AdminDlpPolicy -Examples for more detail.

Examples

EXAMPLE 1

Remove-AdminDlpPolicy -PolicyName 8c02d657-ad72-4bb9-97c5-afedc4bcf24b

Deletes policy 8c02d657-ad72-4bb9-97c5-afedc4bcf24b from tenant.

EXAMPLE 2

Remove-AdminDlpPolicy -EnvironmentName Default-02c201b0-db76-4a6a-b3e1-a69202b479e6 -PolicyName 8c02d657-ad72-4bb9-97c5-afedc4bcf24b

Deletes policy 8c02d657-ad72-4bb9-97c5-afedc4bcf24b from environment Default-02c201b0-db76-4a6a-b3e1-a69202b479e6.

Parameters

-ApiVersion

Specifies the Api version that is called.

Type:String
Position:Named
Default value:2016-11-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnvironmentName

The environment's identifier.

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

-PolicyName

Finds the policy matching the specified name.

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