added clearDiskOnCompletion

completion callback.