I would like to delete a file in a .NET Core 2.0 application but cannot find any alternative to File.Delete.
When creating or reading files we are encouraged to use providers as below because they wrap the underlying file system allowing cross platform access:
IFileProvider provider = new PhysicalFileProvider(dir);
IFileInfo fileInfo = provider.GetFileInfo(fileName);
However there does not appear to be any complimentary functionality for delete operations. System.IO is available in .NET Core 2.0 but is this cross platform compatible?