I am looking for command to delete all files with a specific extension in a given folder. Both, for windows and mac.
Thanks!
You can do this using the Windows GUI. Enter "*. wlx" in the search box in explorer. Then after the files have been found, select them all (CTRL-A) and then delete using the delete key or context menu.
To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r . Directories that are removed with the rmdir command cannot be recovered, nor can directories and their contents removed with the rm -r command.
Delete all files with extension .tmp
in current folder:
On Windows:
del *.tmp
On Mac:
rm -rf ./*.tmp
Delete all files with extension .tmp
in current folder Recursively (including sub-folders):
On Windows:
del /s *.tmp
On Mac:
find . -name '*.tmp' -delete
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With