Cleanup the directory.