Clear a project's build cache
DELETE
/api/v1/projects/{id}/build-cache
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/build-cache';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.deploybase.eu/api/v1/api/v1/projects/example/build-cache \ --header 'Authorization: <Authorization>'Deletes every framework build cache archive of the project (DEP-778), so the next build starts cold and saves a fresh one. Not the CDN cache (/cache/purge).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
Project ID (UUID)
Responses
Section titled “ Responses ”Cleared
Forbidden
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
string
who_acts
string
PROJECT_NOT_FOUND
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
string
who_acts
string
Live 582ac705 built