/namespaces/{NAME}

Delete namespace

Using this endpoint you can delete a namespace

URL

/namespaces/{NAME}

Method

DELETE

URL Params

You have to send as path parameter the name of the namespace:

  • NAME: [REQUIRED] Short name of the namespace.

Success Response

Code: 202

Content:

Error Responses

  • If you query for a namespace name that doesn’t exist:

    Code: 404 NOT FOUND

    Content: { "error" : "The namespace does not exists" }

Sample Call

$ curl -X DELETE -H "Authorization: Bearer SAMPLE-TOKEN" "https://console.beta.k8spin.cloud/api/namespaces/xyz"
# After a few seconds (deletion is async)
$ curl -H "Authorization: Bearer SAMPLE-TOKEN" "https://console.beta.k8spin.cloud/api/namespaces/xyz"
{
  "error": "The namespace does not exists"
}