---
title: "Delete GitHub Actions caches for a repository (using a cache key)"
method: DELETE
path: "/repos/{owner}/{repo}/actions/caches"
tags: ["actions"]
---

# Delete GitHub Actions caches for a repository (using a cache key)

`DELETE /repos/{owner}/{repo}/actions/caches`

Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref.

OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `key` string, required
- `ref` string

## Response `200`

Response

- ActionsCacheList — Repository actions caches
  - `total_count` integer, required — Total number of caches
  - `actions_caches` object[], required — Array of caches
    - `id` integer
    - `ref` string
    - `key` string
    - `version` string
    - `last_accessed_at` string, date-time
    - `created_at` string, date-time
    - `size_in_bytes` integer

---

[API](https://skmtc.net/github/apis/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
