# Cache API

Use the Cache API to clear your caches. A cache temporarily stores active data, such as web pages, text, and images, in a 
dedicated local folder to accelerate access times and enhance overall performance. Content Hub uses various [caches](https://doc.sitecore.com/ch/en/developers/cloud-dev/cache.html).

{% admonition type="info" name="Note" %}When you clear a cache, Content Hub rebuilds it using data from the database, which might result in a slight dip in performance for anyone using Content Hub at that time.{% /admonition %}  
## Authentication

To use this API, you need:

- The URL of your Content Hub server. You can get this from your Content Hub
  Administrator. Enter this URL in the <b>{{server}}</b> variable by hovering your mouse 
  over the variable in the <b>Try it</b> pane and then clicking <b>Edit</b>.

- An access token and the client ID. Both are sent with every request. You 
  can create a token through the [Content Hub
  interface](https://doc.sitecore.com/ch/en/users/content-hub/create-an-oauth-client.html) 
  or by [requesting one using the API
  itself](https://doc.sitecore.com/ch/en/developers/cloud-dev/oauth-tokens.html#grant-flows)


Version: v1.0
License: closed source
Metadata:
  - product: Content Hub

## Servers

```
https://{server}
```

Variables:
- `server`
Default: "your-server"

## Security

### OAuth2.0

Type: oauth2

## Download OpenAPI description

[Cache API](https://api-docs.sitecore.com/_bundle/ch/cache-api/index.yaml)

## Cache

Use the Cache API to clear the caches used by Content Hub.

### Clear the cache

 - [DELETE /api/cache/{name}](https://api-docs.sitecore.com/ch/cache-api/cache/cache.md): Clears a specific cache using the cache name or clears all caches when the name is defined as all. {% admonition type="info" name="Note" %}We strongly recommend that you do not clear your caches during periods of high system load. This can temporarily degrade performance and increase response times for some users.{% /admonition %}

