1 person found this helpful
Once you copied the folder to the destination folder, use remove function for deleting the source folder.
Thanks for you response...
Still it is not working.
Thanks in advance
You have to place the remove function at the end of the script.
can you please tell me what is the error it shows.
Vandy's solution will work only when Source folder is empty.
"Folder.remove()" can only delete folder when the folder is empty.
In your case , i guess your source folder is not empty.
Hence , complete solution will be :
Change this commented line,
Using this will empty your source folder.
And then use "sourceFolder.remove()" at the end of script. to delete empty folder.