File :: tryErase - Check and erase file
The function erases the file or directory. When the path refers to a directory, the directory should be empty. In order to erase non-empty directories, tryEraseDirectory() may be called.
When erasing a file that is still opened, the file will be closed before deleting.
When directory to be deleted is not empty or when the file or directory cannot be deleted (not existing, no permission), the function returns false. when being deleted successfully, the function returns true.
Return value: Success ( bool )
The value is true when the function was executed successfully. Otherwise the value is set to false.