Refactored delete environment
Refactored ringtail task