\<bookmark_value\>Kill statement\</bookmark_value\>

Kill Statement

Deletes a file from a disk.


Kill File As String


File: Any string expression that contains an unambiguous file specification. You can also use URL notation.

Error codes:

5 Invalid procedure call

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err76 not found).


Sub ExampleKill
    Kill "C:\datafile.dat" REM File must be created in advance
End Sub

Please support us!