# Errors when calling functions from File class?

When I try something like File.Delete("Assets/a.txt"); it gives me a error saying

Unknown identifier: 'File'.

In Unity Documentation https://docs.unity3d.com/ScriptReference/Windows.File.html it gives an note saying "this class is only available when targeting Universal Windows Platform." What does this mean?

In top of unity documentation it says File is a class in UnityEngine.Windows

So I tried Windows.File.delete("Assets/a.txt").

Now the error changed to

Language feature not implemented: UnityEngine.Windows.

What is it I am doing wrong?

• As stated in the doc This is an alternative for System.IO.File class. Note: this class is only available when targeting Universal Windows Platform.. It is an alternative to System.IO.File and only works for MS Windows and Windows Phone. Why not just use System.IO.File? Jul 24, 2017 at 8:04

So there's a good chance you don't want to be targeting UWP, since you don't need to, and should thus use a different API to delete a file such as the normal System.IO.File APIs.