added a recursive directory delete to avoid importing a new lib