Utilities.RemoveDir Method

Applies to TestComplete 12.60, last modified on September 17, 2018
This method is obsolete. See the Remarks section below.

Description

Use the Utilities.RemoveDir method to remove the directory specified by the Dir parameter.

Declaration

Utilities.RemoveDir(Dir)

Dir [in]    Required    String    
Result Boolean

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Dir

Specifies the name of the directory to be deleted.

Result Value

If the directory has been deleted successfully, RemoveDir returns True. Otherwise, it returns False.

Remarks

The directory must be empty, otherwise, you will not be able to delete it.

This method is obsolete. It is supported for backward compatibility only. To remove a folder from the disk, use the aqFileSystem.DeleteFolder method.

See Also

aqFileSystem.DeleteFolder Method
aqFileSystem.Exists Method
aqFileSystem.CreateFolder Method
aqFile.Delete Method
aqFileSystem.DeleteFile Method

Highlight search results