DELETE FILE
Deprecated: The
DELETE FILEkeyword has been unified into theDELETEkeyword. UseDELETEinstead.
Unified DELETE Keyword
The DELETE keyword now automatically detects file paths and handles file deletion:
' Delete a file - just use DELETE
DELETE "path/to/file.txt"
' DELETE auto-detects:
' - URLs → HTTP DELETE
' - table, filter → Database DELETE
' - path → File DELETE
Migration
Old Syntax (Deprecated)
' Old way - no longer needed
DELETE FILE "temp/report.pdf"
New Syntax (Recommended)
' New way - unified DELETE
DELETE "temp/report.pdf"
Examples
' Delete a temporary file
DELETE "temp/processed.csv"
' Delete uploaded file
DELETE "uploads/" + filename
' Delete with error handling
ON ERROR RESUME NEXT
DELETE "temp/large-file.pdf"
IF ERROR THEN
TALK "Could not delete file: " + ERROR MESSAGE
END IF
ON ERROR GOTO 0