(Folder/File) How to delete the files from folder which extension is not xls or xlsx?

I want to delete the files from folder which extension is not xls or xlsx.

Refer the following code.

2 Likes