Skip to content

Commit aff3e0d

Browse files
Update Remove-DlpKeywordDictionary.md
Suggested change to examples to show piping between the Get and Remove Cmdlets. The challenge is Get uses 'Name' and Remove uses 'identity' for the target. As such they do not pipe data properly.
1 parent 92b0814 commit aff3e0d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

exchange/exchange-ps/exchange/Remove-DlpKeywordDictionary.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@ You need to be assigned permissions in the Security & Compliance Center before y
3636
Remove-DlpKeywordDictionary -Identity "Financial Data"
3737
```
3838

39-
This example remove the DLP keyword dictionary named Financial Data.
39+
This example removes the DLP keyword dictionary named Financial Data.
40+
41+
### Example 2
42+
```powershell
43+
Get-DlpKeywordDictionary | Foreach-Object { Remove-DlpKeywordDictionary -Identity $_.Name -confirm:$True }
44+
```
45+
46+
This example removes all the DLP keyword dictionaries with a Confirm on each removal.
47+
4048

4149
## PARAMETERS
4250

0 commit comments

Comments
 (0)