added options to clearnup method in migration support