public void RemoveAllItems() //06Feb2014 { List<string> templist = new List<string>(); foreach (string item in FilesList) // create as temp item list. { templist.Add(item); } foreach (string item in templist) { RemoveXMLItem(item); } }