## PowerCLI Reference

# Remove-VICredentialStoreItem

## Synopsis

This cmdlet removes the specified credential store items.

Syntax

Remove-VICredentialStoreItem [-CredentialStoreItem] <VICredentialStoreItem[]> [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-VICredentialStoreItem [[-Host] <String>] [[-User] <String>] [[-File] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-VICredentialStoreItem
New-VICredentialStoreItem

Detailed Description

This cmdlet removes the credential store items that match the specified Host and User parameters. At least one of the Host and User parameters must be provided. To remove all passwords, call ?Remove-VICredentialStoreItem *?, which is a wildcard matching all hosts.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
CredentialStoreItem | VICredentialStoreItem[] | Specifies the credential store items you want to remove. | true | true (ByValue)
Host | String | Specifies a host to filter the credential store items you want to remove. | false | false
User | String | Specifies a user to filter the credential store items you want to remove. | false | false
File | String | Specifies the file location of the credential store items that are to be removed. | false | false
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

Return Type

None

Notes

Examples

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

    Remove-VICredentialStoreItem -Host 192.168.1.100 -Confirm

Removes all credentials for the specified host from the default credential store file.

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

    Remove-VICredentialStoreItem -User 'admin' -Host '192.168.*' -File 'credentials.xml' -Confirm

Removes all credentials for the specified user and network from a credential store file.

Copyright © VMware, Inc. All rights reserved.