Effortlessly clear your CustomXmlPropertyCollection with the Clear method, removing all elements for streamlined data management.... That ( properties [ 2 ]. Value , Is . EqualTo ( "2003"...Count , Is . EqualTo ( 3 )); // 2 - Remove by name: properties ...