Hi @atripp ,
after yours testing I found mistake in URL - my URL was without /package/. When I use proper URL to request, package was succesfully deleted.
Thank you for quick support and sorry about my novice mistake ;)
Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Hi @atripp ,
after yours testing I found mistake in URL - my URL was without /package/. When I use proper URL to request, package was succesfully deleted.
Thank you for quick support and sorry about my novice mistake ;)
Hi @atripp ,
with incorrect API key: Invoke-RestMethod : Invalid API key
Hello @Dan_Woolf ,
I have tried it with other packages - the same result :/ With UI it work but I want to delete many packages by script.
API Key:
key type Feed
package permission:full (view/download,add/repackage,promote, overwrite/delete)
Thanks,
Ales
Hello,
I am traying to delete nuget package via API because of free edition. Using command:
Invoke-RestMethod -Method Delete -Uri "http://ipserver:8624/nuget/feedID/nugetPackageName/NugetPackageVersion" -Headers @{"X-NuGet-ApiKey"="apiKeyPassword"}
Command is executed without error but nothing happened. Package is still on disk and can be found in "Packages".
Pls how can I delete nuget packages with PowerShell?