doctl compute cdn flush

Go to Navigation

Usage

doctl compute cdn flush <cdn-id> [flags]

Aliases

fc

Description

This command flushes the cache of a Content Delivery Network (CDN), which:

  • purges all copies of the files in the cache
  • re-caches the files
  • retrieves files from the origin server for any requests that hit the CDN endpoint until all the files are re-cached

This is useful when you need to ensure that files which were recently changed on the origin server are immediately available via the CDN.

To purge specific files, you can use the the --files flag and supply a path. The path may be for a single file or may contain a wildcard (*) to recursively purge all files under a directory. When only a wildcard is provided, or no path is provided, all cached files will be purged.

Flags

OptionDescription
--filescdn files
Default: [*]
--help, -hHelp for this command
CommandDescription
doctl compute cdnDisplay commands that manage CDNs

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false