Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
File.rm(filepath)
open (10,file=filepath,status="old", iostat=ierr)
if (ierr == 0) close (10,status="delete")
Deno.remove(filepath, { recursive: true }).catch((err) => console.error(err));
os.remove(filepath)
unlink($filepath);
unlink $filepath;
File.delete(filepath)