7.6.2.35. 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.

Examplekind: 'DeleteOptions', apiVersion: 'v1', propagationPolicy

Expand
Parameter NameDescription

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, etc. 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".

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部