We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

xx97's avatar
xx97
Occasional Contributor
4 years ago
Solved

Delete Folder error

Hi, I try to delete a non-empty folder but it says "No folders that correspond to folder path" Here is my code: function Deletingfolder() { aqFileSystem.DeleteFolder("folderpath",true); }
  • mattb's avatar
    mattb
    4 years ago

    Is the file path declared with proper syntax? IE we need 2 //.

    Example Code:

    function DeletingFiles()
    {
     var sPath = "C:\\Temp\\*.txt";

     // Deletes the files
     aqFile.Delete(sPath);
    }

    https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/delete.html



    If not could you supply an example of the file path you are using?