Hello,
I am trying to configure some workflow in logic app to interact with sharepoint.
However, I have some strange behavior.
Here I am testing simple action of getting items from sharepoint list.
API connection is established to sharepoint:

And after that I am able to get sharepoint list items successfully.
Then I want to delete all those items using for each loop. I choose "value" from the previous step to be input in my foreach:

Then I add Delete item action and choose ID value as unique identifier of item to be deleted:

However, when I pick ID value it creates one more for each loop automatically, I don't know why:

If I want to save it, it is not possible because it always shows that API connection name must be provided:
"Workflow validation failed for the workflow ''. {"error":{"code":"BadRequest","message":"The API connection name must be provided in the 'Delete_item' action inputs."}}"

When I click Code View tab I see connection is visible:

Tried re-creating logic app several times but that didn't help. Did I miss something here?
Thank you