DELETE /invalidate/{path} is self-hosted only. On Cloud, clear a single asset by deleting and re-uploading it, or purge everything with POST /storage/cache/clear, which works on both.
Clears the cached transformation variants of one file. The original is not touched.
Path parameters
Response
localCacheFilesDeleted, number: cached transformation variants removed from local diskcloudCacheFilesDeleted, number: cached transformation variants removed from cloud storageerrors, string[]: non-fatal errors encountered during cleanup. Only present when some steps failed
success is computed as errors.length === 0, so a single non-fatal cleanup error makes it false even though the variants that could be removed were removed. Read details.errors to see what actually happened.
Status codes: 200 success (or partial) · 400 path missing · 500 error
Clear the entire cache
200 success · 500 a cache backend failed
Related
Delete File
Permanently remove a file and all its cached variants.
Transform
Apply transformations, results are cached automatically.