Using the clear command with a command block to clear the players inventory would not work on armour that had a custom damage value which can be applied using a NBT editor of course this has now been changed. 