auto r = std::filesystem::remove(filepath);
try
remove(filepath);
catch (FileException fe)
writeln(fe.msg);
try {
fs.unlinkSync(filepath);
} catch (err) {
console.error(err);
}
deleteIfExists(of(filepath));
File.Delete(filepath);
Ada.Directories.Delete_File (filepath);
int main(void) { if (unlink(filepath) == -1) err(1, "unlink"); return 0; }
auto r = std::filesystem::remove(filepath);
try remove(filepath); catch (FileException fe) writeln(fe.msg);
File(filepath).deleteSync();
File.rm(filepath)
open (10,file=filepath,status="old", iostat=ierr) if (ierr == 0) close (10,status="delete")
err := os.Remove(filepath)
removeFile filePath
Deno.remove(filepath, { recursive: true }).catch((err) => console.error(err));
try { fs.unlinkSync(filepath); } catch (err) { console.error(err); }
await unlink(filepath)
new File(filepath).delete();
deleteIfExists(of(filepath));
os.remove(filepath)
unlink($filepath);
begin if DeleteFile(filepath) then writeln(filepath,' succesfully deleted.') else writeln('Error deleting ',filepath); end.
unlink $filepath;
path = pathlib.Path(_filepath) path.unlink()
os.remove(filepath)
File.delete(filepath)
let r = fs::remove_file(filepath);