cleanup the directory