deleteFile

deleteFile

Syntax

deleteFile(path_to_file)

Package

file

Alias

 

Pkg Usage

delete(path_to_file)

Description

Deletes a file. It also returns "true" if the file was deleted successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

path_to_file

String

Yes

Specifies the file name to delete.

Return Type

Boolean (true/false)

Example

deleteFile("C:/fileToDelete.txt");

It is recommended that you use forward slashes ( / ) for file paths.

See also

Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.