Now deleting all files before writing snapshot to disk.