Share via

Bulk delete file extensions

Anonymous
2020-01-25T03:34:04+00:00

I have a large number of additional, unnecessary file extensions that need to be removed. Tried regedit to no avail. any help would be appreciated. ta.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

15 answers

Sort by: Most helpful
  1. Anonymous
    2020-01-25T08:40:06+00:00

    Press WinKey+X or <Right-click> the Start button & select Windows PowerShell:

    Then copy & paste the following code into the PowerShell window & pressĀ <Enter> to execute. Modify the path if necessary:

    gci 'F:\My Music\*.!ut' -recurse | ren -NewName {$_.BaseName}

    Keith

    8 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-01-25T03:42:09+00:00

    Hi MD. I'm Greg, an installation specialist, 10 year Windows MVP, and Volunteer Moderator here to help you.

    Are you wanting to mass delete files with certain extensions, or delete or hide the extensions themselves? We get asked both.

    For mass deleting files by extension using Command Prompt see this tutorial:

    https://sumtips.com/tips-n-tricks/recursively-d...

    To remove the file extensions themselves see this tutorial:

    https://smallbusiness.chron.com/command-line-re...

    I hope this helps. Feel free to ask back any questions and keep me posted. I will keep working with you until it's resolved.

    ________________________________________________________

    Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-01-25T06:17:23+00:00

    If it's simply stripping a given extension, this should work:

    $FileLoc = 'c:\Files\Rescuesd'

    $ext = '.unwanted'

    Get-ChildItem -Path $FileLoc -File | # Add '-Recdrse' to include files from subfolders

    ?{$_.Extension -like $ext } |

    Rename-Item -NewName {$_.BaseName}

    Keith

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2020-01-25T04:58:41+00:00

    Are you wanting to rename files in a way that removes their extension?

    Where are you seeing these extensions?

    Keith

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2020-01-25T03:51:42+00:00

    I have a large number of additional, unnecessary file extensions that need to be removed. Tried regedit to no avail. any help would be appreciated. ta.

    Thanks, Greg. Wish to remove the file extensions only. Will follow your advice and let you know. Ta.

    0 comments No comments