---
title: "Delete kubernetes resource"
method: POST
path: "/api/v1/kubernetes/delete-resource"
tags: ["Kubernetes"]
---

# Delete kubernetes resource

`POST /api/v1/kubernetes/delete-resource`

## Request body

- DeleteKubernetesResourceCommand
  - `projectId` integer, required
  - `kind` 'None' | 'DaemonSet' | 'Pvc' | 'Deployment' | 'ConfigMap' | 'Secret' | 'Sts' | 'Service' | 'Node' | 'Crd' | 'StorageClass' | 'Pod' | 'Ingress' | 'Pdb' | 'CronJob' | 'Job' | 'NetworkPolicy' | 'Namespace' | 'PersistentVolume' | 'LimitRange' | 'ResourceQuota', required
  - `data` KubernetesActionRequest[], required
    - `name` string, required
    - `namespace` string, nullable

## Response `200`

OK

- KubernetesActionResponse
  - `succeeded` string[], nullable
  - `failed` string[], nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/taikun/apis/taikun-webapi.md) · [All operations](https://skmtc.dev/taikun/apis/taikun-webapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/taikun/taikun-webapi/revisions/09395964d191/schema)
