Refactor deleteDirectory - Don't use Future.wrap