Citrix Daas SDK

Clear-XDCredentials

Clears the set of XD credentials currently set as default in the shell or, if supplied with a name, deletes the set of credentials associated with the supplied name from the local credentials store.

Syntax

Clear-XDCredentials
     [-ProfileName <String>]
     [<CommonParameters>]
<!--NeedCopy-->

Description

Clears the set of XD credentials currently set as default in the shell or, if supplied with a name, deletes the set of credentials associated with the supplied name from the local credentials store.

Examples

EXAMPLE 1

Clear the credentials in $XDStoredCredentials in current session.

Clear-XDCredentials
<!--NeedCopy-->

EXAMPLE 2

Clear any credentials set as default in the current shell. The stored profiles are not affected.

Clear-XDCredentials -ProfileName OnPremDefault
<!--NeedCopy-->

Parameters

-ProfileName

The name associated with a set of credentials in the local store that are to be deleted. If not specified, the default credentials in the shell are cleared.

Type: String
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

You cannot pipe input into this cmdlet.

Outputs

None

By default, this cmdlet returns no output.

Clear-XDCredentials