Delete previous package and assets if they already exist.
Implemented the chunking API.