|
|
#1 |
|
Triple-A Player
Join Date: Feb 2006
Posts: 203
|
deleting the contents of a folder srm
Is there a way to delete the contents of a folder but not the folder itself when using srm?
|
|
|
|
|
|
#2 |
|
League Commissioner
Join Date: Jan 2002
Posts: 7,960
|
I'm not quite understanding your challenge!
Is this a folder that you can't create again, once removed? Or, are you asking about removing files completely from a hierarchy of folders, leaving only the empty folders still in place? |
|
|
|
|
|
#3 |
|
Triple-A Player
Join Date: Feb 2006
Posts: 203
|
What I want to do is delete all files that are inside of a specified folder.
So if we have 'Example Folder" I want to delete everything inside of it, but leave the actual folder remaining. I think I have achieved this with: Code:
srm path/to/Example\ Folder/* |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|