---
schema_version: "1"
id: 1bafd6332e1ab2a8878c9012373bac93bef17264d4bbcbafad9d710824709cd6
title: Delete Expired API Cache
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_delete_expired_api_cache.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_delete_expired_api_cache.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f473cd4885a31065cb931a80f9b22aae8bbd2b768c27702abe57e0b078b074d9
description: This will clear expired cached API records created earlier than today.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Delete Expired API Cache

This will clear expired cached API records created earlier than today.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d221740e32">
            <p style="margin-bottom:0;">Applies to</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d221740e38">
            <p style="margin-bottom:0;">All releases</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e32 ">
            <p style="margin-bottom:0;">Apex Name</p>
          </td>

          <td data-label="All releases" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e38 ">
            <p style="margin-bottom:0;"><span class="apiname">startDeleteExpiredCacheJobs</span> method in
              <span class="apiname">TelcoAdminConsoleHandler</span>
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e32 ">
            <p style="margin-bottom:0;">Where to Run This Job</p>
          </td>

          <td data-label="All releases" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e38 ">
            <p style="margin-bottom:0;">Cacheable API Jobs link on the CMT Administration tab.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e32 ">
            <p style="margin-bottom:0;">Risks of Running This
              Job</p>
          </td>

          <td data-label="All releases" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e38 ">
            <p style="margin-bottom:0;">Low risk. This job deletes cached
              information that is no longer accessible due to its expiration
              time.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e32 ">
            <p style="margin-bottom:0;">When Not to Run This
              Job</p>
          </td>

          <td data-label="All releases" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e38 ">
            <p style="margin-bottom:0;">N/A</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e32 ">
            <p style="margin-bottom:0;">When to Run This Job</p>
          </td>

          <td data-label="All releases" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e38 ">
            <p style="margin-bottom:0;">Run this job regularly to keep the number of cached records at a
              minimum.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e32 ">
            <p style="margin-bottom:0;">More Information</p>
          </td>

          <td data-label="All releases" class="slds-cell-wrap" style="vertical-align:top;" headers="d221740e38 ">
            <p>Cacheable API information is cached in the
              <span class="apiname">CachedAPIResponse</span> object with expiration times;
              the expiry date is set when you run the Populate API Cache
              job.
            </p>
            <p style="margin-bottom:0;">Records with expiration times in the past are no longer
              accessible by the Digital Commerce APIs. This job deletes records that are
              older than midnight of the day the batch job was executed.</p>
          </td>

        </tr>
      </tbody>
    </table>