Populate HttpException with proper error message
Added delete DNS record call
Removed unused code