Schedule multiple stopped review apps for deletion
DELETE
/api/v4/projects/{id}/environments/review_apps
Schedules multiple stopped review apps for deletion. The deletion is performed after 1 week. By default, only environments 30 days or older are deleted.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ” before
string format: date-time
The date before which environments can be deleted. Defaults to 30 days ago. Expected in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)
limit
integer
Maximum number of environments to delete. Defaults to 100
dry_run
boolean
Defaults to true for safety reasons. It performs a dry run where no actual deletion will be performed. Set to false to actually delete the environment
Responses
Section titled “ Responses ”No Content
Media type application/json
object
id
integer format: int64
name
string
slug
string
external_url
string
created_at
string format: date-time
updated_at
string format: date-time
Example
{ "id": 1, "name": "deploy", "slug": "deploy", "external_url": "https://deploy.gitlab.example.com", "created_at": "2019-05-25T18:55:13.252Z", "updated_at": "2019-05-25T18:55:13.252Z"}Bad request
Unauthorized
Not found
Conflict