Utilities.DeleteFile Method

Applies to TestComplete 14.10, last modified on June 5, 2019
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

aqFile.Delete Method
aqFileSystem.DeleteFile Method
aqFile.Create Method
aqFileSystem.Exists Method
aqFile.Exists Method
aqFileSystem.FindFiles Method

Highlight search results