palbaseDocs

Palbase Cache · API

DELETE/cache/entry

Delete an entry

Deletes the entry of key. Deleting what is not there is not an error (deleted: false), so the call is safe to send again.

Called by your server, with the project's secret key.

Query

keystring · requiredThe entry's key: UTF-8 text, 512 bytes at most. It is a query parameter, which a request's log line does not keep.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/cache/entry" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200Whether there was an entry

400The key is missing, too long or not UTF-8; or the body is not the operation's

401Missing or invalid API key

403Not the project's secret key, or the secret key with a user's token beside it (`secret_key_required`)

429Over the project's cache calls a second or its bytes a second (`rate_limited`); retrying is safe after Retry-After

503The cache could not be reached (`cache_unavailable`), or takes no more at this moment (`cache_busy`); retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation DeleteCacheEntry of cache's contract.