new rmdir() method added to delete an entire tree