delete old file and old directory