Skip to content

Remove-PAMSafe

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Decommissions a safe: marks its register entry ‘decommissioned’ and, only with -DeleteFromVault, deletes the safe from the tenant.

Parameter set Name (default):

Terminal window
Remove-PAMSafe [-SafeName] <string> [-DeleteFromVault] [-Reason <string>] [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]

Parameter set Uid:

Terminal window
Remove-PAMSafe -UniqueId <string> [-DeleteFromVault] [-Reason <string>] [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]

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).

Terminal window
Remove-PAMSafe -SafeName AB-ABC-SRV-WIN-DA-I-M-P # register-only
Terminal window
Remove-PAMSafe -UniqueId AA01 -DeleteFromVault -Confirm:$false # full removal

Medium 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.

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Asks for confirmation before the command changes anything.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: cf.

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String Yes 0 No

Not described in the module help.

Type Required Position Pipeline input
String Yes Named No

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).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.