---
title: "Service: /caches/{name}/clear [POST]"
source: https://dev.pageseeder.com/api/services/clear-cache-POST.html
description: "Clears the content of a specific cache by name. Requires administrator permissions. Returns the cleared cache details wrapped in a `<clear-cache>` element. Use /caches [GET] to retrieve valid cache names."
last_updated: 2026-09-02T11:36:12+10:00
document_type: api_endpoint
operation_id: cache-POST
resource_id: cache
path_template: /caches/{name}/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: ~149
---

# /caches/\{name\}/clear \[POST\]

## Description

Clears the cache content of a specific cache.

To retrieve the list of valid cache names, use the [/caches \[GET\]](cache-summary-GET.md) service.

## Parameters

No parameters required.

## Permission

This service requires administrator.

## Response

When successful, this service returns the cache that was 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"/>
</clear-cache>
```

## Error Handling

