Lasso Soft Inc. > Home

[ file->delete ]

Method

The [file->delete] method deletes the file located at the current [file] object's path.

  • Syntax
local(f) = file(...)
$f->delete
Examples
  • Beginner

Delete a file

The following example deletes the "myfile.txt" file from its current location.

Code

var(file) = file('myfile.txt')
$file->delete

Recent Comments

The syntax example:
local(f) = file(...)
should read:
var(f) = file(...)

Posted on: 19 February 2013

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft