Supports deleting root widget.