cleaning ip the directory