Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Delete(string)

Deletes the specified file.
Read time 1 minuteLast updated 6 days ago

Definition

public static void Delete(string path)

Parameters

path

The name of the file to be deleted.

Remarks

If the specified file doesn't exist, this method does nothing and doesn't throw an exception.
Note: This method is available only on the Universal Windows Platform. On other platforms, use the .NET
System.IO.File.Delete
method instead.