rebuild and delete