
Hello,
It seems that you still have a descendant resource attached to the folder. The folder cannot be deleted until all child resources are deleted. I would suggest to check which are the active resources by following the answers from this Stackoverflow post and also by checking this documentation. Once the active resources are identified, please delete them and then try to delete the folder again.