AbstractPath.Delete

AbstractPath.Delete method

Deletes a file pointed to by this path.

public abstract void Delete()

Exceptions

exceptioncondition
InvalidOperationExceptionThe argument points to a directory instead of a file.

Remarks

No exception is thrown if the file doesn’t exist.

See Also