Skip to content

Clear‑ShpUsage

Raimund edited this page Jun 12, 2026 · 1 revision

SYNOPSIS

Clears the per-session usage log recorded by Invoke-Shp.

SYNTAX

Clear-ShpUsage [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Resets the module-scoped usage log to empty, discarding the per-call token, cost and credit records gathered so far in the current PowerShell session. Affects only the current session; nothing is persisted to disk. View the log with Get-ShpUsage. Use this to start a fresh measurement - for example before running a workload whose spend you want to total in isolation.

EXAMPLES

EXAMPLE 1

Clear-ShpUsage

Forgets every recorded call so the next Get-ShpUsage starts from empty.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

None.

NOTES

RELATED LINKS

Get-ShpUsage

Invoke-Shp

Clone this wiki locally