From 4f96b8910a312bb32a79c80e704a8053f16eb6e0 Mon Sep 17 00:00:00 2001 From: Manuel Grabowski <mgrabowski@gitlab.com> Date: Fri, 23 Sep 2022 16:36:45 +0000 Subject: [PATCH] Mention 30 days in the past default behavior --- doc/api/environments.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/environments.md b/doc/api/environments.md index 7d657cac5454d..63f2c7174d2bc 100644 --- a/doc/api/environments.md +++ b/doc/api/environments.md @@ -341,7 +341,8 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git It schedules for deletion multiple environments that have already been [stopped](../ci/environments/index.md#stop-an-environment) and are [in the review app folder](../ci/review_apps/index.md). -The actual deletion is performed after 1 week from the time of execution. +The actual deletion is performed after 1 week from the time of execution. +By default, it only deletes environments 30 days or older. You can change this default using the `before` parameter. ```plaintext DELETE /projects/:id/environments/review_apps -- GitLab