Erase a file if it exists.
template< class File = native_file> void erase_file( path_type const& path, error_code& ec);
This function attempts to erase the specified file. No error is generated if the file does not already exist.
The path to the file to erase.
Set to the error, if any occurred.
A type meeting the requirements of File. If this type is unspecified,
native_file
is used.