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

options

Which are passed as key-value pair in the map.

options.model

k8s model

options.resource

The resource to be deleted.

options.path

Appends as subpath if provided

options.queryParams

The query parameters to be included in the URL.

options.requestInit

The fetch init object to use. This can have request headers, method, redirect, and so on. See Interface RequestInit for more.

options.json

Can control garbage collection of resources explicitly if provided or else it defaults to the model’s "propagationPolicy".