Hi @Dan Jones ,
Welcome to Q&A forum!
I am a SharePoint support engineer, and your question is also related to SharePoint Development, which is not my field of expertise, so I add a related tag so that your question can be seen by SharePoint Development engineers. Regarding your question, I conducted research and testing and got the same results as you. However, I went to the SharePoint admin center to check, and the site has been successfully deleted. You can check to see if the site has been deleted. Because power automate and SharePoint Development are not my areas of expertise, I don't know why this result occurs.
As another option, you could try using pnp powershell for loop deletion.
Here is a post you can refer to:
https://pnp.github.io/cli-microsoft365/sample-scripts/spo/delete-non-group-connected-modern-sites/
Note: SITEPAGEPUBLISHING#0
and STS#3
are site templates for Communication Site and Non-group associated Team Site respectively. You can change the script according to your needs.
Hope this helps. :-)
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.