Clear the cache on a charger
POST/chargers/:id/actions/clear-cache
Sends an OCPP ClearCache command to clear the charger's local authorization cache.
Use Cases:
- Remove revoked or expired ID tags from charger memory
- Force chargers to re-fetch authorization lists from the central system
- Clear stale authorization data after policy changes
- Troubleshoot authorization issues (stale cache)
- Implement security compliance (immediate credential revocation)
What Gets Cleared:
- Local authorization cache (ID tags, users, permissions)
- Offline authorization white/blacklists (if cached)
- Authorization transaction log cache (depends on vendor)
What Remains:
- Charging profiles and schedules
- Configuration parameters
- Firmware and boot settings
- Active session data
Best Practices:
- Use after revoking ID tags to ensure immediate effect
- Send after bulk authorization updates for consistency
- Coordinate with SendLocalList for authorization management
- May cause brief authorization delays as cache rebuilds
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Standard success response for actions
Standard error response format
Standard error response format
Standard error response format
Standard error response format
Standard error response format