Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

DELETE FILE

Deprecated: The DELETE FILE keyword has been unified into the DELETE keyword. Use DELETE instead.


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 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

See Also

  • DELETE — Unified delete keyword (HTTP, Database, File)
  • READ — Read file contents
  • WRITE — Write file contents
  • COPY — Copy files
  • MOVE — Move/rename files