MCPcopy
hub / github.com/cli/cli / deleteCacheByID

Function deleteCacheByID

pkg/cmd/cache/delete/delete.go:204–208  ·  view source on GitHub ↗
(client *api.Client, repo ghrepo.Interface, id int64)

Source from the content-addressed store, hash-verified

202}
203
204func deleteCacheByID(client *api.Client, repo ghrepo.Interface, id int64) error {
205 // returns HTTP 204 (NO CONTENT) on success
206 path := fmt.Sprintf("repos/%s/actions/caches/%d", ghrepo.FullName(repo), id)
207 return client.REST(repo.RepoHost(), "DELETE", path, nil, nil)
208}
209
210// deleteCacheByKey deletes cache entries by given key (and optional ref) and
211// returns the number of deleted entries.

Callers 1

deleteCachesFunction · 0.85

Calls 3

FullNameFunction · 0.92
RESTMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected