Skip to main content
DELETE
/
v1
/
kubernetes
/
cluster-templates
/
{namespace}
/
{name}
Delete a cluster template
const options = {method: 'DELETE'};

fetch('http://localhost:4065/v1/kubernetes/cluster-templates/{namespace}/{name}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "deleted": true
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Path Parameters

namespace
string
required

Kubernetes namespace

Minimum string length: 1
Example:

"kcm-system"

name
string
required

Resource name

Minimum string length: 1
Example:

"my-resource"

Response

Deleted

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required