add version of deleteFile that uses HasFileStore