---
title: "Service: /caches/clear [POST]"
source: https://dev.pageseeder.com/api/services/clear-all-cache-POST.html
description: "POST service that clears all PageSeeder caches including xml-documents, account-lockout, and user-details. Requires administrator permission. Returns list of cleared caches. Use sparingly due to performance impact."
last_updated: 2026-09-02T11:36:12+10:00
document_type: api_endpoint
operation_id: cache-POST
resource_id: cache
path_template: /caches/clear
http_method: POST
api_category: cache
implementation_version: 6.3000
api_since: 5.5000
deprecated_since: null
obsolete_since: null
api_support: experimental
cache_control: N/A
generated_at: 2026-09-02
tokens: ~455
---

# /caches/clear \[POST\]

## Description

Clear all caches.

> **Warning:** Clearing all the caches might lead to a significant degradation of performance and has potential security implications: - only clear the cache in rare circumstances; - [clear individual cache](clear-cache-POST.md) or [remove cache entry](remove-cache-element-POST.md) if possible. If the “account-lockout” cache is cleared, all accounts are automatically unlocked.

As of PageSeeder 5.9, caches include the following list:

- xml-documents
- reset-password-lockout
- validation-results
- account-lockout
- file-inspection
- user-details
- group-state

> **Tip:** Whenever possible, and if the caches do need to be cleared, it might be more appropriate to clear individual caches.

## Parameters

No parameters required.

## Permission

This service requires administrator.

## Response

When successful, this service returns the list of caches which have been cleared wrapped in a `<clear-cache>` element as in the following example:

```xml

<clear-cache>
  <cache name="xml-documents"
guid="MY-PC/192.168.200.210-860d089c-62e9-4f2a-9081-e79a2989c0ef"/>
  <cache name="reset-password-lockout"
guid="MY-PC/192.168.200.210-7ee40724-bbfc-4637-b0d1-b8b8b5b17cbc"/>
  <cache name="validation-results"
guid="MY-PC/192.168.200.210-a896ef63-dbdb-4ade-9b63-7a3629b1c41e"/>
  <cache name="account-lockout"
guid="MY-PC/192.168.200.210-471be945-3a79-468c-93c9-c87807e69a51"/>
  <cache name="file-inspection"
guid="MY-PC/192.168.200.210-f152257f-647d-4f4a-8c32-fa7e5dc3c0dc"/>
  <cache name="user-details"
guid="MY-PC/192.168.200.210-f5a92432-e8e6-4ff5-a5c7-928a748e2f81"/>
  <cache name="group-state"
guid="MY-PC/192.168.200.210-8afef95a-3bc8-49c4-943c-1e8889cc37ee"/>
</clear-cache>
```

## Error Handling

No specific errors expected for this service.

