< Back
Remove-Secret
Post
NAME Remove-Secret
SYNOPSIS
Delete a Secret
SYNTAX
Remove-Secret [-VaultObject] <PSObject> [-Path] <String> [<CommonParameters>]
DESCRIPTION
This will set the delete of a Secret.
PARAMETERS
-VaultObject <PSObject>
The Object containing Vault access details.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The Path to the Secret as you would pass to Vault Read.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-Secret $vault secret/new
PS C:\\> Get-Secret $vault secret/new -Verbose
VERBOSE: No Secret found. [secret/new]
RELATED LINKS
SYNOPSIS
Delete a Secret
SYNTAX
Remove-Secret [-VaultObject] <PSObject> [-Path] <String> [<CommonParameters>]
DESCRIPTION
This will set the delete of a Secret.
PARAMETERS
-VaultObject <PSObject>
The Object containing Vault access details.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The Path to the Secret as you would pass to Vault Read.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-Secret $vault secret/new
PS C:\\> Get-Secret $vault secret/new -Verbose
VERBOSE: No Secret found. [secret/new]
RELATED LINKS