Add a parameter to removeAttribute to remove the attribute only of the specified datatype