deleteUnnecessary