Add function to recursively delete directories