Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Remove-NcCredential


NAME
Remove-NcCredential

SYNOPSIS
Remove saved login credentials for a Data ONTAP controller.

SYNTAX
Remove-NcCredential [-SystemScope] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-NcCredential -Controller <NcController[]> [-SystemScope] [-WhatIf] [-
Confirm] [<CommonParameters>]

Remove-NcCredential [-Name] <String> [-SystemScope] [-WhatIf] [-Confirm] [<C
ommonParameters>]

Remove-NcCredential [-Credential] <NcCredential> [-WhatIf] [-Confirm] [<Comm
onParameters>]


DESCRIPTION
Remove saved login credentials for a Data ONTAP controller.


PARAMETERS
-SystemScope
Remove credentials for the specified controller that were saved using sy
stem scope. If not specified, remove credentials that were saved with u
ser scope.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NcController[]>
One or more NcController objects, as returned by Connect-NcController.
If neither this parameter nor -Name is specified,
this cmdlet will use the value in $global:CurrentNcController (if set).

Required? true
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Name <String>
The name or address of a storage controller. If a host name is specifie
d, it must be resolvable to an address. If neither this parameter nor -
Controller is specified, this cmdlet will use the value(s) in $global:Cu
rrentNcController (if set).

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Credential <NcCredential>
An NcCredential object, as returned by Get-NcCredential. If specified,
that record is removed from the credentials cache (including the correct
value of system scope).

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES


Category: toolkit

-------------- Example 1 --------------

C:\PS>Get-NcCredential dunn | Remove-NcCredential


Remove credentials for controller 'dunn'.





-------------- Example 2 --------------

C:\PS>Remove-NaCredential dunn


Remove credentials for controller 'dunn'.






RELATED LINKS
Add-NcCredential
Get-NcCredential







 Data ONTAP® PowerShell Toolkit