restrict_with_error: delete leaves