Workspace Still Has Services
workspace-has-services · 409
ما زالت للـ workspace خدمات، فلم تحذفه الـ API.
كل الصفحات
حذف الـ workspace لا يسقط خدماته معه أبدا. والـ serviceNames يعرضها بأسمائها، والـ serviceCount يعدها. وبعد أن تذهب الخدمات، يرفض حذف workspace ما زالت له مخازن بالطريقة نفسها، كـ workspace-has-buckets.
إضافة إلى الحقول التي في كل خطأ، يضيف هذا النوع workspaceId، serviceCount و serviceNames.
- ما زالت توجد خدمة في مشروع من مشاريع الـ workspace، سواء كانت تعمل أو نائمة أو موقوفة.
- اسأل المستخدم قبل أن تحذف أي خدمة: بياناتها تذهب معها.
- احذف كل واحدة عبر
ghaym cloud services delete <service> --env <env> --apply، ثم مخازنه، ثم احذف الـ workspace مرة أخرى.
json
{
"type": "workspace-has-services",
"title": "Workspace Still Has Services",
"detail": "This workspace still owns 2 service(s) — orders-db, storefront. Destroy them first, then delete the workspace.",
"workspaceId": "0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
"serviceCount": 2,
"serviceNames": [
"orders-db",
"storefront"
],
"requestId": "req-1785231000000-4f7b2c9ae",
"timestamp": "2026-07-28T09:30:00.000Z",
"path": "/v1/workspaces/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
"method": "DELETE",
"instance": "DELETE /v1/workspaces/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
"status": 409,
"docs": "https://ghaym.me/docs/errors/workspace-has-services"
}