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));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4065/v1/kubernetes/cluster-templates/{namespace}/{name}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request DELETE \
--url http://localhost:4065/v1/kubernetes/cluster-templates/{namespace}/{name}import requests
url = "http://localhost:4065/v1/kubernetes/cluster-templates/{namespace}/{name}"
response = requests.delete(url)
print(response.text){
"success": true,
"data": {
"deleted": true
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Cluster Templates
Delete a cluster template
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));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4065/v1/kubernetes/cluster-templates/{namespace}/{name}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request DELETE \
--url http://localhost:4065/v1/kubernetes/cluster-templates/{namespace}/{name}import requests
url = "http://localhost:4065/v1/kubernetes/cluster-templates/{namespace}/{name}"
response = requests.delete(url)
print(response.text){
"success": true,
"data": {
"deleted": true
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Path Parameters
Kubernetes namespace
Minimum string length:
1Example:
"kcm-system"
Resource name
Minimum string length:
1Example:
"my-resource"
Was this page helpful?