From f8b6d9c54f70f81b5cab30e1e7913c6c4459bb3f Mon Sep 17 00:00:00 2001 From: Gautam Sheth Date: Sat, 19 Oct 2024 22:25:10 +0300 Subject: [PATCH] Update docs for cmdlets --- .../Remove-PnPAvailableSiteClassification.md | 2 +- documentation/Remove-PnPUser.md | 18 +----------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/documentation/Remove-PnPAvailableSiteClassification.md b/documentation/Remove-PnPAvailableSiteClassification.md index fabe5728a..b0a77bef1 100644 --- a/documentation/Remove-PnPAvailableSiteClassification.md +++ b/documentation/Remove-PnPAvailableSiteClassification.md @@ -58,7 +58,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm +### -Force If provided or set to $true, a confirmation will be asked before the actual remove takes place. If omitted or set to $false, it will remove the site classification(s) without asking for confirmation. ```yaml diff --git a/documentation/Remove-PnPUser.md b/documentation/Remove-PnPUser.md index db5395a90..c27b62804 100644 --- a/documentation/Remove-PnPUser.md +++ b/documentation/Remove-PnPUser.md @@ -47,27 +47,13 @@ Remove the user with e-mail address user@tenant.onmicrosoft.com from the User In ### EXAMPLE 4 ```powershell -Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Confirm:$false +Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Force:$false ``` Remove the user with LoginName i:0#.f|membership|user@tenant.onmicrosoft.com from the User Information List of the current site collection without asking to confirm the removal first ## PARAMETERS -### -Confirm -Specifying the Confirm parameter will allow the confirmation question to be skipped - -```yaml -Type: SwitchParameter -Parameter Sets: (All) - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Connection Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. @@ -110,8 +96,6 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - - ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)