Every file or folder that begins with the word “File” or “Folder” respectively, will be deleted.
Delete Files with a specific Extension:
Similarly you can delete only files of a specific type by specifying its extension before a wildcard. With the following command for example, we can delete every text file in our current directory.
Awesome. isn’t it?
Delete Every File/Folder in a directory:
We can even delete every file or folder by using a wildcard, all by itself.
Here is an example using the Rmdir command:
Rmdir /S "*"
Every folder in your current directory will be deleted along with any contents within it.
You can do the same with the Del command as well:
Be careful when deleting files and folders, the wrong command can easily delete important files and folders.