Back

DeleteFolder

Hello World

DeleteFolder does the same as DeleteFile but with folders.

app.DeleteFolder( folder )

It recursively removes all files and folders of the given folder and finally deletes it.

See Also: MakeFolder, RenameFolder, FolderExists

Example - Delete created folder

function OnStart()
{
    app.MakeFolder("myFolder");

    app.DeleteFolder("myFolder");

    if(app.FolderExists("myFolder"))
        app.ShowPopup("myFolder was not deleted!");
    else
        app.ShowPopup("myFolder was deleted!");
}
Copy All       Run      
string: path to file or folder ( “/absolute/...” or “relative/...” )