create an empty folder Then in CMD use the following command
robocopy /MIR c:\test D:\UserData\FolderToDelete > NUL