Describe the bug
When deleting a parent entity like catalog or schema, we should first check if there are child entities of the one being deleted. If present, the delete should error out. If force flag is set to true, the entire hierarchy subtree should be deleted.
To Reproduce
Steps to reproduce the behavior:
- Create a schema underneath a catalog
- Try and delete the catalog
- It will succeed
Expected behavior
The api request should error saying child Schema entities are present.