delete unwanted paths