Use $findfile to count the files in the directory.

Then a loop to /remove them.

/remove [-b] <filename>
Deletes the specified file.
The -b switch deletes the file and moves it to the recycle bin.