Skip to main content
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

Path Parameters

id
string
required

Body

application/json
id
string<uuid>
required
path
string
Example:
override_cache
boolean
default:false

Response

message
string
Example: