Sample Header Ad - 728x90

Delete files and folders recursively in subdirectories

6 votes
4 answers
9623 views
There is a folder, "transfer". In that transfer folder there are user folders "user1", "user2", etc. I want to (periodically) delete the content (i.e. all files and folders in the user folders) but I do not want to delete the "transfer" or user folders. How can I do that using as shell script/command without manually adding a call for each new user folder every time I add a new user?
Asked by Silicomancer (225 rep)
Nov 12, 2019, 08:18 PM
Last activity: Oct 22, 2024, 02:01 PM