complete delete well function