I googled, "office comand line remove" and came up with this as the sixth item.

http://www.kbalertz.com/kb_Q296067.aspx

Its for office 2000, but the same concept should apply to XP. Just like Nihil, I'm not quite sure why you would want to remove office like this, but none the less this information should lead you in the right direction.