circleci.go
func (c *Client) ClearCache(account, repo string) (string, error) {
	status := &struct {
		Status string `json:"status"`
	}{}

	err := c.request("DELETE", fmt.Sprintf("project/%s/%s/build-cache", account, repo), status, nil, nil)
	if err != nil {
		return "", err
	}

	return status.Status, nil
}
func (c *Client) ClearCache(account, repo string) (string, error) {
	status := &struct {
		Status string `json:"status"`
	}{}

	err := c.request("DELETE", fmt.Sprintf("project/%s/%s/build-cache", account, repo), status, nil, nil)
	if err != nil {
		return "", err
	}

	return status.Status, nil
}
func ( c * Client ) ClearCache ( account , repo string ) ( string , error ) { status := & struct { Status string `json:"status"` } { } err := c . request ( " " , fmt . Sprintf ( " " , account , repo ) , status , nil , nil ) if err != nil { return " " , err } return status . Status , nil }
// ClearCache clears the cache of the specified project
// Returns the status returned by CircleCI
ClearCache clears the cache of the specified project Returns the status returned by CircleCI