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 |
‑Method |
The purging method, either |
‑Network |
The network on which to remove the object(s), either |
‑Section |
The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
‑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
Updated 8 days ago