use the more generic removeDirectory