Utilities.DeleteFile Method

Applies to TestComplete 15.0, last modified on November 17, 2021
This method is obsolete. See the Remarks section below.

Description

The Utilities.DeleteFile method removes the specified file from the disk.

Declaration

Utilities.DeleteFile(FileName)

FileName [in]    Required    String    
Result Boolean

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

FileName

Specifies the full name of the file to be deleted.

Result Value

If the deletion is successful, the function returns True. If the file does not exist or it cannot be deleted, the function returns False.

Remarks

This method is obsolete. It is supported for backward compatibility only. To delete a file from the disk, use the aqFileSystem.DeleteFile and aqFile.Delete methods.

See Also

Delete Method
DeleteFile Method
Create Method
Exists Method
Exists Method
FindFiles Method

Highlight search results