k8sDeleteResource
It deletes resources from the cluster, based on the provided model, resource. The garbage collection works based on Foreground|Background can be configured with propagationPolicy property in provided model or passed in json. It returns a promise that resolves to the response of kind Status. In case of failure promise gets rejected with HTTP error response.
Example
kind: 'DeleteOptions', apiVersion: 'v1', propagationPolicy
| Parameter Name | Description |
|---|---|
|
Which are passed as key-value pair in the map. |
|
k8s model |
|
The resource to be deleted. |
|
Appends as subpath if provided |
|
The query parameters to be included in the URL. |
|
The fetch init object to use. This can have request headers, method, redirect, and so on. See Interface RequestInit for more. |
|
Can control garbage collection of resources explicitly if provided or else it defaults to the model’s "propagationPolicy". |