Bulk Delete via Rest invoke in Poweshell

Occasional Visitor

Hi All,

 

I am using the below rest method from PowerShell to delete the ID (123) and it is working ,now i have 100 + ids ,how can delete all the 100+ ID 's one by one automatically one after other.Kindly suggest 

 

Invoke-RestMethod -Uri 'http://127.0.0.1/api/data(123)' -Method Delete -ContentType "application/xml" -Credential username

1 Reply