Skip to content

Clear profile cache ​

Clear Cache and Code Cache without deleting all profile data.

Definition: POST · Checked on 2026-10-21.

Request ​

http
POST /api/clearCache

Use the base URL and api-key shown on the client API screen. All examples use 9000 only as a placeholder port; see Overview for authentication.

JSON body ​

FieldTypeRequiredDescription
idintegerYesExisting positive profile ID, e.g. 1; obtain it from the profile list

cURL example ​

bash
curl --request POST 'http://127.0.0.1:9000/api/clearCache' \
  --header 'api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1
}'

Response example ​

json
{
  "success": true,
  "message": "Cache cleared successfully"
}

Current client response fields ​

FieldTypeUsage
successbooleanRequest processing succeeded; not a guarantee that every item was written
messagestringCache result message

Usage notes ​

  • The online reference does not mark id as required, but current clients require it. Stop the profile before clearing cache to avoid file-in-use errors.

For failed requests, check both HTTP status and the error body. See Errors & troubleshooting.

Only the profile’s Default/Cache and Default/Code Cache are cleared; missing directories still return success. This does not delete cookies or the full profile data.