name | example | route | scope | type |
---|---|---|---|---|
Delete GitHub Actions caches for a repository (using a cache key) |
octokit.rest.actions.deleteActionsCacheByKey({ owner, repo, key }) |
DELETE /repos/{owner}/{repo}/actions/caches{?key,ref} |
actions |
API method |
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.
You must authenticate using an access token with the repo
scope to use this endpoint.
GitHub Apps must have the actions:write
permission to use this endpoint.
octokit.rest.actions.deleteActionsCacheByKey({
owner,
repo,
key,
});
name | required | description |
---|---|---|
owner | yes |
The account owner of the repository. The name is not case sensitive. |
repo | yes |
The name of the repository. The name is not case sensitive. |
key | yes |
A key for identifying the cache. |
ref | no |
The Git reference for the results you want to list. The |
See also: GitHub Developer Guide documentation.