Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bagetter Delete Package #150

Open
leolaw7799 opened this issue Jun 5, 2024 · 1 comment
Open

Bagetter Delete Package #150

leolaw7799 opened this issue Jun 5, 2024 · 1 comment

Comments

@leolaw7799
Copy link

Hi,

Can you please help me with the command for deleting a nupkg package from Bagetter through Command line.

I tried the below command and it throws: The remote server returned an error: (404) Not Found..

"C:\Nuget.exe" delete package_name 1.1.1 -s http://localhost/BagetterSource/v3/index.json

Also, i tried adding ApiKey in the command and it results the same error.

Kindly help me with the command to delete the package. Thanks

@Regenhardt
Copy link

As a test, I pushed coverlet.collector.6.0.2.nupkg to my BaGetter.

Then I deleted it using the following command:

nuget delete coverlet.collector 6.0.2 -Source https://localhost/v3/index.json

You are using -s to set the source, which only works for the dotnet nuget cli. When using nuget.exe, you need -Source or -src.
To use -s, you need to call dotnet nuget delete....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants