Update file deletion logic in `ExportFragment` to only delete empty files