Akamai cache
Clear-AkamaiCache
Synopsis
Purge Akamai cache data.
Syntax
url (Default)
Clear-AkamaiCache -URLs <String> [-Method <String>] [-Network <String>] [-EdgeRCFile <String>]
[-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
cpcode
Clear-AkamaiCache -CPCodes <String> [-Method <String>] [-Network <String>] [-EdgeRCFile <String>]
[-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
tag
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
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Account switch keys can be found using Get-AccountSwitchKey
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CPCodes
Comma-separated string of CP Code IDs to purge.
Type: String
Parameter Sets: cpcode
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EdgeRCFile
EdgeRC file to authenticate your command. Defaults to ~/.edgerc
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Method
Purging method, invalidate
or delete
. If invalidate
, subsequent requests for an object will go forward with an If-Modified-Since
revalidation request. Using delete
will remove the entry from the cache entirely.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: invalidate, delete
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Network
Network on which to remove the object(s), staging
or production
.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: staging, production
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Tags
Comma-separated string of Cache Tags to purge.
Type: String
Parameter Sets: tag
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-URLs
Comma-separated string of URLs to purge.
Type: String
Parameter Sets: url
Aliases: None
Required: True
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
None
Outputs
System.Object
Related links
Updated 17 days ago