Skip to content

Purge build cache archives written in a window (incident response)

DELETE
/api/v1/admin/build-cache
curl --request DELETE \
--url 'https://api.deploybase.eu/api/v1/api/v1/admin/build-cache?created_after=example&created_before=example' \
--header 'Authorization: <Authorization>'

Platform admin incident purge (DEP-778, threat T5): deletes every framework build cache entry created in [created_after, created_before) and every stored archive last written in that window, for all teams. Builds after it start cold. Runbook: docs/ops/build-cache.md.

created_after
required
string

Window start, RFC 3339, inclusive

created_before
required
string

Window end, RFC 3339, exclusive

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
deleted

Deleted counts the archives deleted: entries plus objects that had none.

integer

Example generated

{
"data": {
"deleted": 1
},
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

INVALID_INPUT: both bounds are required, RFC 3339, and after < before

Media type application/json
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

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Forbidden

Media type application/json
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

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Live 582ac705 built