Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Are your templates listed as post types in Rank math > Titles & Meta? If they are you can easily edit and set them to noindex then edit individual templates and have them to noindex.
If they are not listed, you can edit your robots.txt file and add a disallow to keep all bots from crawling your template files. Here is a guide on how to use robots.txt for this.
You can remove the indexed URLs by heading to your GSC and submitting a URL removal request.
Looking forward to helping you. Thank you.
​​​​​​​
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.