make sure all keys are deleted before upload