Adding implementation for the function removeValueAll()