Delete folder with file that has to long path name

Welcome Forums General PowerShell Q&A Delete folder with file that has to long path name

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
2 years, 1 month ago.

  • Author
    Posts
  • #54894

    Participant
    Points: 0
    Rank: Member

    Dear People,

    At the moment I need to delete a folder that is almost 60 GB, but there are files with to long path name
    I justed the follow oneliner: remove-item 'D:\ibalg\01 ib concepts' -recurse

    and then I get the message that there are files with to long file path names.

    Any idea how to get it done so that I can delete the folder

  • #54896

    Participant
    Points: 0
    Rank: Member

    Create an empty folder D:\temp

    robocopy D:\temp D:\ibalg\01 ib concepts /MIR

The topic ‘Delete folder with file that has to long path name’ is closed to new replies.