(client *api.Client, repo ghrepo.Interface, id int64)
| 202 | } |
| 203 | |
| 204 | func 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. |
no test coverage detected