F5F Stay Refreshed Software General Software application or script to delete all folders with a given name.

application or script to delete all folders with a given name.

application or script to delete all folders with a given name.

C
Crazydog300
Senior Member
599
03-01-2025, 10:42 AM
#1
Is there a tool available to eliminate all folders with a particular name, like "coffee", across the C drive and even deeper directories such as AppData and ProgramData? I'm curious about the process and what script handles this. I attempted something suggested in a link here: https://stackoverflow.com/questions...e-...powershell
C
Crazydog300
03-01-2025, 10:42 AM #1

Is there a tool available to eliminate all folders with a particular name, like "coffee", across the C drive and even deeper directories such as AppData and ProgramData? I'm curious about the process and what script handles this. I attempted something suggested in a link here: https://stackoverflow.com/questions...e-...powershell

P
pyrobeef
Junior Member
28
03-01-2025, 02:42 PM
#2
Bare Metal Software > BareGrep - Free grep for Windows
Used to search every file mentioning it, showing all folders in your results
I purchased a professional license because I rely on them daily, including baretail
As a developer, you understand how crucial this tool is
P
pyrobeef
03-01-2025, 02:42 PM #2

Bare Metal Software > BareGrep - Free grep for Windows
Used to search every file mentioning it, showing all folders in your results
I purchased a professional license because I rely on them daily, including baretail
As a developer, you understand how crucial this tool is

A
arteralino
Member
137
03-01-2025, 03:28 PM
#3
Curiously, did your system fall victim to malware, creating numerous folders and files across all drives, folders, and subfolders?
A
arteralino
03-01-2025, 03:28 PM #3

Curiously, did your system fall victim to malware, creating numerous folders and files across all drives, folders, and subfolders?

E
eel8
Member
177
03-02-2025, 12:07 AM
#4
Review your syntax particularly regarding string usage.
FYI:
Check the resources listed above for handling strings within file names.
One tip:
Target files with names containing the word coffee.
Verify results before using commands that might alter or delete files you don’t want.
Run the test on copies of the intended folders.
Always back up data if the Remove-Item command appears too forceful.
E
eel8
03-02-2025, 12:07 AM #4

Review your syntax particularly regarding string usage.
FYI:
Check the resources listed above for handling strings within file names.
One tip:
Target files with names containing the word coffee.
Verify results before using commands that might alter or delete files you don’t want.
Run the test on copies of the intended folders.
Always back up data if the Remove-Item command appears too forceful.

M
MCDark_Reaper
Member
146
03-02-2025, 01:10 AM
#5
It's a stubborn program I need to eliminate. I deleted all registry records, but folders remain elsewhere on the disk.
M
MCDark_Reaper
03-02-2025, 01:10 AM #5

It's a stubborn program I need to eliminate. I deleted all registry records, but folders remain elsewhere on the disk.

D
Duke_Trent
Junior Member
19
03-09-2025, 01:12 PM
#6
Search every file mentioning it to view all folders in your search results
Bare Metal Software > BareGrep - Free grep for Windows
I purchased a license for the professional version since I use them daily, including baretail too. As a developer, you understand how crucial a tool it is
D
Duke_Trent
03-09-2025, 01:12 PM #6

Search every file mentioning it to view all folders in your search results
Bare Metal Software > BareGrep - Free grep for Windows
I purchased a license for the professional version since I use them daily, including baretail too. As a developer, you understand how crucial a tool it is

D
davachio
Member
204
03-09-2025, 05:56 PM
#7
Just what I was looking for. Appreciate it!
D
davachio
03-09-2025, 05:56 PM #7

Just what I was looking for. Appreciate it!