Official Content

Deprecated: Since GeneXus X. Replaced by Delete method.

Deletes a certain file.

Syntax

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)

Scope

Objects: Procedure, Transaction, Web Panel
Generators:.NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

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.

Samples

&Filename= “C:\Temp\Report.gxr”
&var=Deletefile(&Filename)


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant