write the code, please (deleting folder)

Hi. I am a biginner and wanna make a program that deletes a non-empty folder (for example D:\\my folder). I have done my best, but don't have a success. I use remove("D:\\my folder"), but it doesn't work. What shall I do?
Don't post twice: http://www.cplusplus.com/forum/beginner/9596/
Don't ask for code: http://www.cplusplus.com/forum/articles/1295/
Be more specific, what remove have you used? (from which library?)
Topic archived. No new replies allowed.