How to delete the protected objects created by VMware PKS in NSX-T via APIs
Hello Everyone, I was working on a VMware Tanzu Grid environment and later on i need to delete this environment but unfortunately can't delete all the objects in NSX-T which were created by VMware Tanzu Grid on NSX-T during the Tanzu deployments. VMware Tanzu/PKS and NSX-T is fully integrated with each other and PKS create lots of protected objects like logical-switches, logical-routers,firewall rules,load Balancer, NAT rules etc.. inside NSX-T to make sure that these are not mistakenly deleted by an administrator. We can not delete these PKS created objects from NSX-T admin GUI as these are protected by a PKS super user. If you see below screenshot, then i don't have option to delete these logical-switches from GUI. Delete option is not highlighted here. Now, the way to delete these protected objects via NSX-T API only. NSX admin GUI has API documentation and you can check what all API available there for NSX-T. Also, you can refer below VMware link for NSX-T APIs