since for /r
delivers the full filename to the metavariable %%i
then the match will never be true.
Use if not %%~nxi==10.10.5[1].xml
to process just the name and extension.
The metavariable is one of the few areas where batch is case-sensitive. All references to the metavariable must be in the same case.
If the full-filename to be deleted may contain a space (or other separators/poison characters) then the delete target should be "quoted"
.