fixed the remove api for migration and added validFileOnly to lisFileLumis API.