DeleteFile
Deletes a file from the computer’s file system.
Syntax
-
DeleteFile(s)
-
s
is a string
-
Description
If s
is a fully-qualified file name, then DeleteFile(s)
attempts to delete this file.
Examples
n ≔ 512; bm ≔ ComputePixmap(n, n, x, y, hsv(x⋅360/pred(n), 1, y/pred(n))); fn ≔ "D:\colours.png"; SaveToFile(bm, fn); try(system("pbrush", """" ~ fn ~ """")); wait(2); DeleteFile(fn);