For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove-RDMVaultCustomVariable

Synopsis

Delete custom variables in a vault.

Syntax

InputObject

Remove-RDMVaultCustomVariable [-Variable] <PSVaultVariable[]> [-VaultMode <VaultMode>]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Name

Remove-RDMVaultCustomVariable [-Name] <string[]> [-VaultMode <VaultMode>]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Delete custom variables in a vault and save the changes. The user must have the rights to edit the vault settings. This command is not available on the global vault.

Examples

Example 1

PS C:\> Remove-RDMVaultCustomVariable -Name '$MYVAR$'

Delete the custom variable named $MYVAR$ and save the change.

Example 2

Delete all custom variables whose name starts with $TEMP and save the change.

Parameters

-Confirm

Prompts for confirmation before running the cmdlet.

-ForcePromptAnswer

Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:

  • Yes: Accept the prompt. Cover the OK and Automatic value.

  • No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

-Name

Name of the custom variables to delete.

-VaultMode

Vault where the command will be applied. Three choices are offered: - Default: Current vault that has been set. - User: Vault specific to the current user. - Global: Global vault of the workspace.

-Variable

Custom variables to delete.

-WhatIf

Shows what would happen if the cmdlet were to run. The cmdlet does not run.

CommonParameters

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

Inputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSVaultVariable

Custom variables to delete, obtained from Get-RDMVaultCustomVariable.

Notes

For more information, type "Get-Help Remove-RDMVaultCustomVariable -detailed". For technical information, type "Get-Help Remove-RDMVaultCustomVariable -full".

Last updated

Was this helpful?