Akamai cache

Clear-AkamaiCache

Synopsis

Purge Akamai cache data.

Syntax

Clear-AkamaiCache -URLs <String> [-Method <String>] [-Network <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Clear-AkamaiCache -CPCodes <String> [-Method <String>] [-Network <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Clear-AkamaiCache -Tags <String> [-Method <String>] [-Network <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Purges content from the Akamai cache on either the staging or production network. You can purge content by either the URL, CP code, or cache tag. You can also provide multiple entries as comma-separated strings. Additionally, you can specify the method to use when purging content, either invalidate or delete.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑CPCodes
Conditionally required

A comma-separated string of CP Code IDs to purge.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑Method

The purging method, either invalidate or delete. If using invalidate, subsequent requests for an object go forward with an If-Modified-Sinc' revalidation request. If using delete, it removes the entry from the cache entirely.

‑Network

The network on which to remove the object(s), either staging or production.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑Tags
Conditionally required

A comma-separated string of cache tags to purge.

‑URLs
Conditionally required

A comma-separated string of URLs to purge.

Related Links

User Guide: Purge