Remove-PokeAPICache

SYNOPSIS

Removes all cached PokeAPI responses

SYNTAX

__AllParameterSets

Remove-PokeAPICache [-WhatIf] [-Confirm]

ALIASES

This cmdlet has the following aliases,

  • Remove-PokeCache

DESCRIPTION

The Remove-PokeAPICache cmdlet removes every response from the in-memory response cache so the next request is sent to PokeAPI.

PokeAPI asks developers to locally cache resources, successful responses are cached in memory for one hour by default.

EXAMPLES

EXAMPLE 1

Remove-PokeAPICache

Removes all cached PokeAPI responses

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

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

INPUTS

OUTPUTS

NOTES

The Remove-PokeCache alias is kept for older scripts.