Delete old cache contents when creating new metadata package.

Closes-bug: #1252724
Change-Id: I6262f4ee3782b81bf5e8d21e3ed9a420d1203c90
Merge "Delete old cache contents when creating new metadata package."