Add file cleaning to the FileReference.