Remove-PnPStoredCredential
SYNOPSIS
Removes a stored credential
SYNTAX
Remove-PnPStoredCredential -Name <String> [-Force]
DESCRIPTION
Removes a stored credential. If a default vault has been registered through Microsoft.PowerShell.SecretManagement, the credential is removed from that vault. If not, it is removed from the credential store native to the operating system: the Windows Credential Manager on Windows, the Keychain on macOS and the Secret Service on Linux. See Credential Management for the details.
EXAMPLES
EXAMPLE 1
Remove-PnPStoredCredential -Name "https://tenant.sharepoint.com"
Removes the specified credential from the credential store
PARAMETERS
-Force
If specified you will not be asked for confirmation
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
The credential to remove
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False