Remove-PAMSafe
Decommissions a safe: marks its register entry ‘decommissioned’ and, only with -DeleteFromVault, deletes the safe from the tenant.
Syntax
Section titled “Syntax”Parameter set Name (default):
Remove-PAMSafe [-SafeName] <string> [-DeleteFromVault] [-Reason <string>] [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]Parameter set Uid:
Remove-PAMSafe -UniqueId <string> [-DeleteFromVault] [-Reason <string>] [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]Description
Section titled “Description”The register entry is never removed – the UID is a CMDB linkage key and its history must survive the safe. Default behaviour is register-only (works offline). -DeleteFromVault requires a connected session; the destructive path is gated by that explicit switch plus ShouldProcess (ConfirmImpact Medium – register-only stays non-prompting; suppress the vault-delete prompt with -Confirm:$false or the launcher’s YES gate).
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Remove-PAMSafe -SafeName AB-ABC-SRV-WIN-DA-I-M-P # register-onlyExample 2
Section titled “Example 2”Remove-PAMSafe -UniqueId AA01 -DeleteFromVault -Confirm:$false # full removalMedium impact: register-only decommission is reversible and must not prompt non-interactively. The destructive path is gated by the explicit -DeleteFromVault switch (and the launcher’s YES confirm), not ConfirmImpact.
Parameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
-DeleteFromVault
Section titled “-DeleteFromVault”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-Reason
Section titled “-Reason”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-SafeName
Section titled “-SafeName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
-UniqueId
Section titled “-UniqueId”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
-WhatIf
Section titled “-WhatIf”Shows what the command would do, without doing it.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: wi.
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Remove-PAMSafe -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
