UNPKG

circleci-api

Version:

A Node and Browser client for the CircleCI API, written in TypeScript.

14 lines (13 loc) 575 B
import { ClearCacheResponse, GitInfo, CircleOptions } from "../types"; /** * Clear project cache * * @see https://circleci.com/docs/api/v1-reference/#clear-cache * @example DELETE : https://circleci.com/api/v1.1/project/:vcs-type/:username/:project/build-cache * * @param token CircleCI API token * @param circleHost Provide custom url for CircleCI * @param vcs Git info for project * @returns status message of request */ export declare function clearCache(token: string, { circleHost, ...vcs }: GitInfo & CircleOptions): Promise<ClearCacheResponse>;