In this article we are going to show you how you can delete file or files using a single line of VBA code.
There are three types of deletion you may want to perform:
1. Delete a specific file from the folder
Kill "E:\Work\ExcelSirJi\ Test 3.txt"
2. Delete specific type of files from the folder.
3. Delete all files from the folder
How can I use this VBA code?
What will happen when I run this code?
The code will delete file(s) from the given folder
Thanks for reading the article, subscribe us to get more VBA tricks