---
title: Clean cache
description: Clear cache for a specified datasource to improve performance and ensure up-to-date data retrieval.
category: Infoveave Activities
tags: [cache, clear, datasource, performance, system]
---

# Clean cache

## Description

The **Clean Cache** activity clears the cached data associated with a selected datasource. This ensures that future queries fetch the most up-to-date information and helps maintain optimal system performance by removing stale or unnecessary data.

Use this activity to:

- Force-refresh data sources whose content may have changed externally.
- Improve workflow performance by freeing up memory used by outdated cache.
- Troubleshoot data consistency issues during testing or production workflows.

> **Use case**: If your workflow queries data from an external service and that service has changed, running this activity ensures the next request will pull fresh data instead of relying on stale cached values.

## Input

_Not Applicable_

## Output

| Output Type | Format | Description                     |
| ----------- | ------ | ------------------------------- |
| **Data**    | JSON   | Status of cache clear operation |

## Configuration Fields

| Field Name     | Description                                            |
| -------------- | ------------------------------------------------------ |
| **Datasource** | The datasource from which the cache should be cleared. |

## Sample Input

_Not Applicable_

## Sample Configuration

| Output Type    | Format                   |
| -------------- | ------------------------ |
| **Datasource** | CRM_Database , Marketing |

## Sample Output

| Datasource Name | Cleared |
| --------------- | ------- |
| CRM_Database    | true    |
| Marketing       | true    |
