delete_namespace_label
Remove a label from a Kubernetes namespace by specifying the namespace and label key. Succeeds even if the label is absent.
Instructions
Delete a label from a namespace.
This function removes a label from a Kubernetes namespace. If the label doesn't exist, the operation is considered successful.
Args: namespace: The name of the namespace to remove the label from. key: The label key to delete. kubeconfig_path: Optional path to a kubeconfig file. If not provided, the default kubeconfig from the environment will be used.
Returns: Union[bool, str]: True on success (or if label didn't exist), or error object if failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| namespace | Yes | ||
| kubeconfig_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |