>I know there is a simple way to do this with API, removing a dir which is not empty and you don't know how many dirs are inside of it, nor files.
>
>could you guys point me to the simple API call with out using recursove thing?
One option is RMDIR, a DOS command.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)