Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

KILL

Description

KILL can be used to delete files from the SD card. The file must not be in use for this command to succeed. KILL takes a single argument which is the name of the file that should be deleted.

Example

Deletes the file "hello.txt" from disk:

OUTMODE -2
KILL "hello.txt"
IF LASTERR = 0 THEN
   PRINT "the file was successfully deleted"
ELSE
   PRINT "something's gone wrong "; 
   PRINT LASTERR
END IF

Remarks

KILL sets the pseudo variable LASTERR to report success or failure.