Utilities.RemoveDir Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.


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



Dir [in]    Required    String    
Result Boolean

Applies To

The method is applied to the following object:


The method has the following parameter:


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.


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