delete rows for docs before updateing