' deletefile.bmx success=deletefile("myfile") if not success runtimeerror "error deleting file"