Deletes a certain file.
DeleteFile( character_expression )
Where:
Character_expression
Is a string with the file name and path of the file to be deleted.
Type returned:
Numeric(1)
Objects: Procedure, Transaction, Web Panel
Generators:.NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
Keep in mind that, in the string parameter (with the name and path of the file to be deleted), this path should be absolute for the place where the application is running this function.
The function returns 1 in case of success and 0 on the contrary.
&Filename= “C:\Temp\Report.gxr”
&var=Deletefile(&Filename)