You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: '{"data": {}, "message": "Site not found", "http_status": 404}'
488
+
headers: []
489
+
description: 'Site Not Found'
490
+
-
491
+
custom: []
492
+
status: 422
493
+
content: |-
494
+
{
495
+
"data": {},
496
+
"errors": {"per_page": ["Maximum items per page is 100."]},
497
+
"message": "Validation failed",
498
+
"http_status": 422
499
+
}
500
+
headers: []
501
+
description: 'Validation Error'
502
+
responseFields: []
503
+
auth:
504
+
- headers
505
+
- Authorization
506
+
- 'Bearer 6g43cv8PD1aE5beadkZfhV6'
507
+
controller: null
508
+
method: null
509
+
route: null
333
510
-
334
511
custom: []
335
512
httpMethods:
@@ -967,8 +1144,10 @@ endpoints:
967
1144
and CDN resources. The site status transitions to `terminating` and eventually
968
1145
`terminated`.
969
1146
970
-
**Important:** All environments must be terminated before the site can be deleted.
971
-
Use the environment delete endpoint to terminate each environment first.
1147
+
**Important:** By default, all environments must be terminated before the site
1148
+
can be deleted — use the environment delete endpoint to terminate each
1149
+
environment first, or pass `delete_environments: true` to have any remaining
1150
+
deployed environments terminated inline as part of the site deletion job.
972
1151
973
1152
This operation is irreversible. All site data and configurations will be
974
1153
permanently removed.
@@ -994,8 +1173,20 @@ endpoints:
994
1173
site: 01jfgxk4nqrst5vwx9yz0abcde
995
1174
queryParameters: []
996
1175
cleanQueryParameters: []
997
-
bodyParameters: []
998
-
cleanBodyParameters: []
1176
+
bodyParameters:
1177
+
delete_environments:
1178
+
custom: []
1179
+
name: delete_environments
1180
+
description: 'Optional. When true, any remaining deployed environments are terminated as part of the site deletion job (each environment is terminated in sequence before the dev container and Ymir project are removed). When omitted or false, the request is rejected with 422 if deployed environments still exist.'
1181
+
required: false
1182
+
example: true
1183
+
type: boolean
1184
+
enumValues: []
1185
+
exampleWasSpecified: true
1186
+
nullable: false
1187
+
deprecated: false
1188
+
cleanBodyParameters:
1189
+
delete_environments: true
999
1190
fileParameters: []
1000
1191
responses:
1001
1192
-
@@ -1044,8 +1235,8 @@ endpoints:
1044
1235
content: |-
1045
1236
{
1046
1237
"data": {},
1047
-
"errors": {"site": ["Cannot delete site that has active environments. Please terminate all environments first."]},
1048
-
"message": "Validation failed",
1238
+
"errors": {"site": ["Cannot delete site with deployed environments. Please terminate all deployed environments first, or pass delete_environments=true to terminate them as part of the site deletion."]},
1239
+
"message": "Cannot delete site with deployed environments. Please terminate all deployed environments first, or pass delete_environments=true to terminate them as part of the site deletion.",
0 commit comments