How delete a directory using IRP?

I saw this code (http://www.cppblog.com/momoxiao/archive/2010/02/06/107338.html) to delete a file using IRP, now how make (or what i must change) to delete a specific directoty instead only a file?

thank you

You need to recursively delete all the files and subfolders.

-scott
OSR
@OSRDrivers