fixes #4593
Merge pull request #4602 from dotCMS/issue-4593-cant-push-delete-structure-withs-deps

fixes #4593