Delete API with powershell not working

Hi Team,
User who has admin access with gitlab, trying to use Delete API which is written in power shell script was throwing 404 error. Please see attached error details and script executed. Please help ASAP as we got stuck with the issue.


please add the powershell script as text, best formatting within three backticks in markdown here. I won’t be able to type the code from the screenshot for trying to understand what’s going on.

Meanwhile also verify the auth method against the API, in your code you are using basic auth while the API suggests to use access tokens.


PS: ASAP is a term which I generally recommend to avoid when asking for help, it sounds so demanding thus impolite.