Utilities.RemoveDir Method

Applies to TestComplete 15.47, last modified on January 20, 2023
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

DeleteFolder Method
Exists Method
CreateFolder Method
Delete Method
DeleteFile Method

Highlight search results