diff --git a/Functions/Setup/Clear-NetboxCredential.ps1 b/Functions/Setup/Clear-NetboxCredential.ps1 new file mode 100644 index 0000000..62109ab --- /dev/null +++ b/Functions/Setup/Clear-NetboxCredential.ps1 @@ -0,0 +1,11 @@ +function Clear-NetboxCredential { + [CmdletBinding(ConfirmImpact = 'Medium', SupportsShouldProcess = $true)] + param + ( + [switch]$Force + ) + + if ($Force -or ($PSCmdlet.ShouldProcess('Netbox Credentials', 'Clear'))) { + $script:NetboxConfig.Credential = $null + } +} \ No newline at end of file