Partilhar 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

Default (Default)

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.

Parameter properties

Type:String
Default value:2016-11-01
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

-EnvironmentName

The environment's identifier.

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

-PolicyName

Finds the policy matching the specified name.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
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.