Appeal from a judgment of the Onondaga County Court (Thomas J. Miller, J.), rendered June 12, 2015. The judgment convicted defendant, upon his plea of guilty, of burglary in the second degree.
It is hereby ordered that the judgment so appealed from is unanimously affirmed.
Defendant further contends that his guilty plea was not knowingly, intelligently, and voluntarily entered and that the court abused its discretion in denying his motion to withdraw his plea on that ground without first conducting a hearing. Although that contention survives defendant’s waiver of the right to appeal (see id.), the record establishes that defendant withdrew his motion to withdraw his guilty plea and thereby waived any contention with respect to that motion (see People v Harris, 97 AD3d 1111, 1112 [2012], lv denied 19 NY3d 1026 [2012]; People v Gilliam, 96 AD3d 1650, 1651 [2012], lv denied 19 NY3d 1026 [2012]).
To the extent that defendant’s contention that he was denied effective assistance of counsel survives his valid waiver of the right to appeal (see People v Rausch, 126 AD3d 1535, 1535 [2015], lv denied 26 NY3d 1149 [2016]), we conclude that it lacks merit. Defendant has not shown that his motion to withdraw his guilty plea would have been successful if not withdrawn (see Harris, 97 AD3d at 1112). Moreover, defendant “receive [d] an advantageous plea and nothing in the record casts doubt on the apparent effectiveness of [defense] counsel” (Dale, 142 AD3d at 1290 [internal quotation marks omitted]).
Finally, the valid waiver of the right to appeal forecloses defendant’s challenge to the severity of his sentence (see generally Lopez, 6 NY3d at 255-256).