@dry-keyboard-94795 just to give a headsup, here our requirement is to first Create the above mentioned resource "*nginxingress_deployment*" using
"kubernetes.yaml.ConfigFile" function and then only delete this resource. (this creation and deletion is because we have some resource dependency on cert-manager for TLS and certificates generation)
But, as per this link
https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configfile/, may be we can only omit the resource but not delete the created resource. (Please feel free to correct me if i am mistaken.)
Hence, we are looking for any pulumi python function that can be used to delete the created resource "*nginxingress_deployment"* that can be incorporated in the code.