BaGet icon indicating copy to clipboard operation
BaGet copied to clipboard

What should I do to really delete the nuget package

Open lukali1986 opened this issue 4 years ago • 2 comments

I try to delete the nuget package using the following command:

dotnet nuget delete -s http://localhost:8020/v3/index.json xxx 1.0.0

The command line prompts me that I have successfully deleted it. At this time, if I need to upload my nuget package again, it will prompt that the package already exists.

Even if I add the --skip-duplicate parameter, I can't upload again. What should I do next?

lukali1986 avatar Sep 06 '21 10:09 lukali1986

same problem for month... only way i found is to delete baget and reinstall it

puschie286 avatar Sep 06 '21 15:09 puschie286

I found a solution:

  1. Copy the configuration file( app/appsettings.json ) in docker
  2. Modify file( appsettings.json ) ,Refer to this URL https://loic-sharma.github.io/BaGet/configuration/ "PackageDeletionBehavior": "HardDelete" "AllowPackageOverwrites": true
  3. Mount files to docker -v /data/baget/appsettings.json:/app/appsettings.json
  4. Restart docker

lukali1986 avatar Sep 07 '21 02:09 lukali1986