Hello friends,

I have several files in an ‘OUTPUT’ folder with different extensions as ‘docx, docm, pdf, xlsx … ‘. I have to delete some files which have extension ‘docx, xls … ‘ as per my requirement.

Please suggest me a code to delete the files in the folder as per my requirement.
First I want to select which format extension to delete and after selecting the format I want to delete the file with that selected extension automatically.

Any help will be highly appreciated.

Thanking you in anticipation.