delete old dir before creating new