Updated deleteDomain method signature

Return an object (task) instead of string