Added remove cmd and sanitizing xml data for md update.