Answers for "find files and delete without deleting folders and subfolders"

1

bash delete files with names from subfolder

find <folderPath> -name "filename" -delete

# Ex:
find . -name "test.json" delete
Posted by: Guest on December-26-2021
0

create batch file to delete folders and subfolders

Echo batch file to delete folder

@RD /S /Q "D:\testfolder"
Posted by: Guest on June-03-2020

Code answers related to "find files and delete without deleting folders and subfolders"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language