POST
/
v1
/
projects
/
{id}
/
purge-cache
Purge cache for a project
curl --request POST \
  --url https://api.edgee.app/v1/projects/{id}/purge-cache \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "path": "/api/v1/users",
  "override_cache": false
}'
{
  "message": "Cache purged"
}
When you purge cache, Edgee will remove the specified cached content from all edge locations worldwide, which is useful when you need to update cached content, clear stale data after deployments, force fresh content to be served to users, or troubleshoot caching issues. Query strings are automatically removed from the path before purging and cache is purged for all domains associated with the project across all edge locations worldwide. For more information about how caching works in Edgee, see the Caching Documentation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token. More info here

Path Parameters

id
string
required

The project ID

Body

application/json

Input parameters for purging cache

id
string<uuid>
required

The project ID (required, must be a valid UUID)

path
string

Optional path to purge cache for. If not provided, all cache will be purged. Query strings are automatically removed from the path.

Example:

"/api/v1/users"

override_cache
boolean
default:false

Whether to purge override cache instead of main cache. Defaults to false.

Response

Cache purged successfully

message
string
Example:

"Cache purged"