---
title: "Clear cache"
sidebar_label: "Clear cache"
description: "How to clear the cache selectively or completely"
sidebar_position: 3
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'

# Clear cache

Clearing the cache on CDN servers may be required:

* if the content on the origin has been updated;
* or if data is displayed incorrectly.

Cache can be [cleared selectively](#selective-cleanup) or [completely](#full-cleanup).

The clearing time depends on the number of files. Clearing the cache can take up to 15 minutes.

## Clear cache completely \{#full-cleanup}

:::warning

After a full cache clear, CDN servers will start requesting content from the origin again, and the load on the origin may increase significantly.

:::

Full cache clearing is available three times per hour.

1. In the [control panel](https://my.selectel.ru/cdn-v3), on the top menu, click **Products** and select **CDN**.

2. In the **CDN Resources** section, in the <MoreVerticalIcon /> menu of the CDN resource, select **Purge Cache**.

3. Select the purge type **Full**.

4. Click **Purge Cache**.

5. Click **Purge Cache**. It takes about a minute to create a purge request. Once the request is created, the purge will begin, and the CDN resource will change its status to `PROCESSING`. The purge will be complete when the CDN resource status changes to `ACTIVE`.

## Clear cache selectively \{#selective-cleanup}

Selective cache clearing is available 10 times per hour.

1. In the [control panel](https://my.selectel.ru/cdn-v3), on the top menu, click **Products** and select **CDN**.

2. In the **CDN Resources** section, in the <MoreVerticalIcon /> menu of the CDN resource, select **Purge Cache**.

3. Select the purge type **Selective**.

4. Specify the relative paths to the files or folders you want to delete from the cache. Enter each path on a new line. You can add up to 50 paths at a time.

5. Click **Purge Cache**. It takes about a minute to create a purge request. Once the request is created, the purge will begin, and the CDN resource will change its status to `PROCESSING`. The purge will be complete when the CDN resource status changes to `ACTIVE`.

<Formbricks />
