---
title: "Purge the edge cache for the application's domains"
method: POST
path: "/v2/apps/{appId}/network/purge_cache"
tags: ["Network"]
---

# Purge the edge cache for the application's domains

`POST /v2/apps/{appId}/network/purge_cache`

Purges the cached responses held at the edge for the application's primary domain and any configured custom domain.

Requires the workspace Maintainer or Administrator role (or ownership) when called against a workspace-shared application. Rate limited to 1 request per 60s per owner.

## Path parameters

- `appId` string, required

## Response `200`

Cache purge submitted.

- object
  - `status` 'success', required

## Other responses

- `401` — The Authorization header is missing, malformed, or the credentials are not valid.
- `403` — The workspace member does not have the required permission for this endpoint.
- `404` — The target application could not be found, or the caller is not a member of the workspace.
- `429` — The endpoint enforces its own rate limit and the caller hit the cooldown.
- `500` — Edge cache purge failed.

---

[API](https://skmtc.dev/squarecloud/apis/square-cloud-api.md) · [All operations](https://skmtc.dev/squarecloud/apis/square-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/squarecloud/square-cloud-api/revisions/54b7733a6b95/schema)
