How can I delete the whole directory regardless whether it is empty or not? I've tried RemoveDirectory(), remove() function, but their all failed when there is file or subdirectory in the directory.