Fixes #7333,BZ1129635 - Deleting a resource and creation a new one wont lead to conflicts

refactored organization delete
It could catch some of non-user errors. I'm not entirely sure how to solve this without letting the controller check whether environment is deletable.