You could do it this way......
Create a folder on the desktop of C: (Windows) then copy and paste all the data from D: to it. It will fit.
After you verify it all copied ok, then you can......
Delete the D partition down to unallocated space. Create a new partition from all of the unallocated space.
Copy the folder back to D and verify, if happy, delete the folder from C.