Skip to main content

Clean

Endpoint

PUT  /api/v1/admin/clean

Filters

The following optional filters are available:

NameDescription
beforeclean resources created before a certain time (UNIX Epoch, default = "now" minus repo timeout + 5 minutes)

Permissions

COMING SOON!

Responses

Status CodeDescription
200indicates the request has succeeded
400indicates bad request
401indicates user does not have proper permissions
500indicates internal server issue while cleaning

Sample

warning

This section assumes you already know how to authenticate to the API.

To authenticate to the API, please review the authentication documentation.

File

{
"message": "this resource has been set to error by platform admins during maintenance"
}

Note: the default value for message is "build cleaned by platform admin"

Request

curl \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d "@data.json" \
"http://127.0.0.1:8080/api/v1/admin/clean"

Response

  "42 builds cleaned. 42 services cleaned. 42 steps cleaned."